Comments (12)
should the plugin break when it can't resolve a package?
No, it shouldn't... it should just ignore it... :/
I will need to have a look at that later
from dynamic-cdn-webpack-plugin.
I found where the error comes from: https://github.com/npm/normalize-package-data/blob/9948ecf3d97cffcaab8f914522a0f3953edac6e4/lib/fixer.js#L335
from dynamic-cdn-webpack-plugin.
fixed on v3.4.1
from dynamic-cdn-webpack-plugin.
Fixed this currently by using the only
option passed to the plugin, but should the plugin break when it can't resolve a package?
from dynamic-cdn-webpack-plugin.
I believe adding a .catch
block here should at least prevent the plugin from dying.
from dynamic-cdn-webpack-plugin.
Can you give me the full stack trace?
Did you install redux-saga
?
from dynamic-cdn-webpack-plugin.
This is when I run without using the only
option.
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Invalid name: "redux-saga/effects"
(node:13924) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, prom
ise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 8): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 10): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 12): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 16): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 18): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 20): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 22): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 24): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 26): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 28): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 31): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 34): Error: Invalid name: "redux-saga/effects"
Node#moveTo was deprecated. Use Container#append.
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 36): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 39): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 41): Error: Invalid name: "redux-saga/effects"
(node:13924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 43): Error: Invalid name: "redux-saga/effects"
And yes, I have installed redux-saga
from dynamic-cdn-webpack-plugin.
It reminds me of this issue: import-js/eslint-plugin-import#793
Is it working at all with [email protected]
?
from dynamic-cdn-webpack-plugin.
I didn't get that error with [email protected]
.
from dynamic-cdn-webpack-plugin.
That's it then! :)
Easier to write a test with that information! There is a good chance, it's due to an underlying dependency (I have no idea which one yet). Maybe https://github.com/sindresorhus/resolve-pkg or https://github.com/sindresorhus/read-pkg-up
from dynamic-cdn-webpack-plugin.
For reference: the issue is caused by this change in redux-saga
: redux-saga/redux-saga#895
from dynamic-cdn-webpack-plugin.
Awesome. Thanks a lot
from dynamic-cdn-webpack-plugin.
Related Issues (20)
- One error occurred after adding dynamic-cdn-webpack-plugin HOT 5
- incompatibility with html-webpack-inline-source-plugin HOT 12
- doesn't parse other libraries HOT 4
- not working with webpack externals parameter HOT 1
- Add `module-to-cdn` as dependency HOT 5
- [Propostion] New API to instantiate plugin for diff supported output plugin HOT 7
- Vendor code still in my bundle HOT 4
- Can't figure out a basic scenario working with my own CDN and packages HOT 4
- 99.9% of my packages could not be found, but they exist in CDN HOT 2
- Dependency issue with babel-runtime HOT 5
- Is there a way to configure script injections? HOT 1
- Optional and peer dependencies HOT 7
- [Bug] Module isn't auto loaded from CDN URL at runtime. Is it meant to be? HOT 1
- Missing dependencies HOT 3
- Manually script injections order. HOT 2
- Building project includes dependency even when dynamic-cdn-webpack-plugin is set up HOT 1
- feat: work with webpack-manifest-plugin
- Support with Next.JS HOT 4
- want to use dynamically inside monaco editor, so as the user writes imports it should be added in the index.html
- Webpack 5 HOT 2
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 dynamic-cdn-webpack-plugin.