-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
url polyfill for webpack 5 #466
Conversation
@NC-jsAhonen Was there some issue with this? |
I wrote it to the description. But this is not necessary for the demo if the develop works in other environments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NC-jsAhonen You need to run mvj-ui's yarn start with minimum node v18. Please try that. Also delete node_modules and reinstall them
Now I managed to make it work. Closing this PR, as it is outdated. |
config/polyfills.js
Outdated
@@ -8,6 +8,9 @@ if (typeof Promise === 'undefined') { | |||
window.Promise = require('promise/lib/es6-extensions.js'); | |||
} | |||
|
|||
// for webpack 5 | |||
require('url') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me with just the "url" package installed. So maybe this part is redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for me
package.json
Outdated
@@ -69,6 +69,7 @@ | |||
"redux-form": "^8.2.5", | |||
"redux-oidc": "^3.1.4", | |||
"redux-saga": "^1.0.5", | |||
"url": "^0.11.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this should be a dev dependency?
The reason why it worked for me seems to be that I had the package installed globally, and webpack included it from there. After removing said package, I get the same error. |
a9f3caf
to
8f54f14
Compare
8f54f14
to
be3a203
Compare
I got the following error trying to run
develop
withyarn start
, so I created these changes.