I updated packages and all seemed fine. I took a week break from the project, ran npm install
and cannot seem to figure out the cause of this error. It’s on this repo.
For convenience here is the error message and specs:
ERROR in ./src/app.js
Module build failed: TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.extname (path.js:1429:5)
at processText (/home/kingscott/newton/node_modules/standard/node_modules/eslint/lib/cli-engine.js:144:30)
at CLIEngine.executeOnText (/home/kingscott/newton/node_modules/standard/node_modules/eslint/lib/cli-engine.js:671:26)
at Linter.lintText (/home/kingscott/newton/node_modules/standard-engine/index.js:65:59)
at Object.standardLoader (/home/kingscott/newton/node_modules/standard-loader/index.js:19:12)
@ multi app
and my packages:
"dependencies": {
"material-ui": "^0.15.0-alpha.2",
"react": "^15.0.2",
"react-dom": "^15.0.2",
"react-tap-event-plugin": "^1.0.0",
"recompose": "^0.17.0"
},
"engines": {
"node": "0.12.7"
},
"devDependencies": {
"babel": "^5.8.21",
"babel-core": "^5.8.22",
"babel-loader": "^5.3.2",
"standard": "^6.0.8",
"standard-loader": "^3.0.0",
"webpack": "^1.13.0",
"webpack-dev-server": "^1.14.1"
}
If you check out the repo, you can see my server.js
and webpack.config.js
.
Thanks.
I’ve seen some weird Node 6 reports so maybe that’s it?
Must be a node problem. Downgraded to
node 5.11.1
and it works. Thanks for the help, you can close.Yeah, downgraded from Node 6.2 to 5.12 and this resolved the issue for me. Thanks!!
This issue is resolve in taofed/react-web#136 :
or
Upgrading npm solved my problem but thanks a lot guys!!!
For anyone who hasn’t upgraded NPM recently, use
npm install -g npm
per @bolivar‘s suggestion.Webpack update was the perfect solution for this issue. I’d like just to add a comment on how to update the npm packages easier. You’d need to run the following three commands in your project’s root directory:
npm i -g npm-check-updates
npm-check-updates -u
npm install
i meet the same question
the error message
and i update my babel-core version to 6.11.4, it`s work well
@yorkie Great! It helps me.
I got it working now after using ncu (npm-check-updates) to fetch the latest versions:
Node: v8.2.1
NPM: 5.3.0