Comments (5)
Thanks for the feedback. I'll try to get to fixing this soon. For now, I would downgrade unless necessary. I'm not actually 100% sure how the cloudfront invalidation actually works so I will have to do some research and figure out how best to get around this. @flipxfx may be able to guess on this right away though
from s3-plugin-webpack.
Yeah, refactoring my build seems to have resolved my issue. Hope this can help someone else at least.
from s3-plugin-webpack.
I have same problem :(
from s3-plugin-webpack.
Weird that the error is shown before as the invalidation happens after right? This error seems to be related to s3. andrewrk/node-s3-client#68 (comment)
from s3-plugin-webpack.
Doing some more testing locally and I think I have narrowed down the issue to my usage of CopyWebpackPlugin
with a large directory from node_modules for loading CKEditor as part of my Angular app's bundle. Without this in my common build, everything works with no error, including Cloudfront invalidation.
new CopyWebpackPlugin([{
//TODO add using import?
context: './node_modules/ckeditor/',
from: '**/**',
to: './assets/vendor/ckeditor/'
}]),
In reviewing options for optimizing the loading of ckeditor (which is about 15MB) I noticed a newer version ng2-ckeditor that was released that supports Angular's NgModule
, which may provide a better bundling opportunity and reduce the dependency on CopyWebpackPlugin
and greedy copying all files from that directory in node_modules.
from s3-plugin-webpack.
Related Issues (20)
- The specified distribution does not exist. HOT 1
- Help, how to specify relaxed root caching policy? HOT 5
- Problem with directory option HOT 1
- endpoint-url option HOT 2
- Feature request: done callback with uploaded items HOT 2
- Any hook could I know that the upload process is finished ? HOT 1
- Upload Triggers too Early in Build Process HOT 10
- cloudfrontInvalidateOptions not compatible with s3options.credentials
- Reading file from AWS giving 403 Access denied error HOT 1
- [FeatureRequest] add CloudFront support HOT 1
- ERR_INVALID_ARG_TYPE (undefined) after upgrade to Webpack 5 HOT 13
- Progress bar not working correctly HOT 3
- Document minimum AMI user permissions/ACLs in order for accesssing an AWS bucket HOT 6
- Is there a way I can INVALIDATE CDN Distribution ONLY if the file content has changed ?
- Using basePathTransform produces TypeError: this.basePathTransform is not a function HOT 1
- option directory How to specify multiple directories HOT 2
- upload unchanged files HOT 2
- Broken urls replacement
- aws sdk ^2.x is raising warnings HOT 1
- Invalid version inside package.json?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3-plugin-webpack.