-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
"npm run start" is not building the project #240
Comments
Ive found a fix: Hi all. I had issues with the current repo logging errors when installing with an error of vulnerabilities in [email protected], and [email protected]. NOTE: This is a fix for it, and there may be easier ways to do so. If there is, please let me know as I'm pretty new to all this. But I thought I would help people trying to do this course and getting hung up here. First errors having to do with vulnerabilities: Run:
and
if required You will be asked to install webpack cli
Next you will have some version conflicts with webpack and babel.
Then:
Next you will get this error when running npm start:
To fix this open webpack.config.js in a code editor. Replace this section:
With this:
And this section:
For this:
|
You should try |
ok, after an hour or so, I was able to fix this by starting over ( alot of fixes for this issues ), then do a fresh npm install, and change in package-json the "scripts" "start" does not need the 'node and dir to webpack-dev-server', instead make it this: "start": "webpack-dev-server" and that's all I did to get it to work, on windows machine..of course took over an hour to try all the fixes.. |
My package json looks like:
"webpack": "^4.8.3",
"webpack-cli": "^3.0.2",
"webpack-dev-server": "^3.1.4"
I did yarn add -D webpack-cli to install the webpack CLI
Now its giving me an error like this.
✖ 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }
-> Options affecting the normal modules (
NormalModuleFactory
).-> A non-empty string
The text was updated successfully, but these errors were encountered: