-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
"TypeError: Path must be a string" after break from project #2463
Comments
Could you try upgrading to standard 7? Feels like a standard related bug to me. |
The error persists. I've swapped out some of my code (new build processes for old etc), updated/downgraded packages. And not sure what it is. |
Ok. The next step would be digging into ESLint. Maybe logging near the offending line would give better insight. It might stem from standard-loader configuration somehow so that's another place to inspect. |
Hmm, we'd have to dig into ESLint even if I'm not explicitly using ESLint? |
See |
What command do I have to run to repro? I tried a few, no luck. I see ERROR in ./src/app.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../backgrounds.js in ../king/src
@ ./src/app.js 25:21-49 though. |
I can include that file. I excluded it from source control and would prefer to have it not on GitHub. I can email you the file, and then you would just checkout the ➜ ~ npm install
➜ ~ npm start |
Works for me. king [nasa-update] $ npm start
> [email protected] start .../king
> NODE_ENV=development node server.js
Listening at localhost:2020
Hash: 22dd0f5206c2641317ba
Version: webpack 1.13.0
Time: 3776ms
Asset Size Chunks Chunk Names
./lib/build.js 980 kB 0 [emitted] app
./lib/build.js.map 1.15 MB 0 [emitted] app
chunk {0} ./lib/build.js, ./lib/build.js.map (app) 924 kB [rendered]
WARNING in ./src/app.js
<text>:22:8: Closing curly brace does not appear on the same line as the subsequent block.
webpack: bundle is now VALID. Maybe I'm missing something. Running on OS X so that could be it. There's some difference. |
If you navigate to |
It shows some photo background and time(?) then. |
Hmm weird. I was getting the same error on OS X as well as Linux. |
It's really hard for me to say anything concrete. You would have to look at the stack trace and go from there. Perhaps someone else can repro. In any case, this might fit Stack Overflow better as it seems the issue is somewhere else than webpack core. |
I am slightly confused as to why you cannot replicate the bug, what version of |
king [nasa-update] $ node -v
v5.10.1
king [nasa-update] $ npm -v
3.8.3 |
I've seen some weird Node 6 reports so maybe that's it? |
Must be a node problem. Downgraded to 👍 |
Ok. You could consider reporting this upstream to |
I'll give it a shot, thanks @bebraw. |
Had the same issue and no stack trace to help me debug this whatsoever. Downgraded from node 6 to 5 and... success! Thanks! |
same here 👍 |
Great! It helps me to resolve the same issue. Thanks! 👍 |
Thank you guys! |
Thanks you guys |
Yeah, downgraded from Node 6.2 to 5.12 and this resolved the issue for me. Thanks!! |
@binarious did you try to update |
@jcubic both are at their latest versions. |
Seems to be a bug somewhere else: webpack-contrib/sass-loader#285 |
I have the same problem. Env: node.js version: 7, "webpack": "1.13.3", "babel-loader": "6.2.7", "react-hot-loader": "1.3.0", "babel-core": "6.18.2". Other loader is missing. |
This issue is resolve in taofed/react-web#136 :
or
|
webpack/webpack#2463 (comment) - includes missing jquery as devDep - upgrades some other deps - improves README
solves some strange compatibility issues, see webpack/webpack#2463 (comment)
Upgrading npm solved my problem but thanks a lot guys!!! |
For anyone who hasn't upgraded NPM recently, use |
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 |
i meet the same question
the error message
and i update my babel-core version to 6.11.4, it`s work well |
I had to downgrade to node 6.11 ( I was on 8 ) and upgrade to babel-core to 6.11.4 and it worked. |
Had to downgrade to node v5.12 and babel-core is at v6.25. Annoying that I can't even use the LTS version of Node. |
I got it working now after using ncu (npm-check-updates) to fetch the latest versions:
Node: v8.2.1 |
webpack/webpack#2463 (comment) - includes missing jquery as devDep - upgrades some other deps - improves README
I get this error using: NPM: 5.6.0 It disappears if I remove the |
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:
and my packages:
If you check out the repo, you can see my
server.js
andwebpack.config.js
.Thanks.
The text was updated successfully, but these errors were encountered: