Open DanielWahl opened 1 year ago
Not quite sure if that's the root of the problem, but webpack is trying to access the base root folder of the server:
Set(8) {
'/usr/www/users/takeoff/takeoffshow.blocknote.dev/takeoff-frontend/node_modules',
'/usr/www/users/takeoff/takeoffshow.blocknote.dev/takeoff-frontend',
'/usr/www/users/takeoff/takeoffshow.blocknote.dev',
'/usr/www/users/takeoff',
'/usr/www/users',
'/usr/www',
'/usr',
'/'
}
The file causing this: lib/FileSystemInfo.js:2055 --> processCapturedFiles
any luck with this bug? I'm getting the same error on my Mac environment (MacOS Big Sur 11.7.4 Node v 16.17.0 npm v 9.6.2)
just curious, did you start getting this error after you installed tailwindcss? That's when my troubles started.... Could just be a coincidence
Still didn't find a solution to the problem. I'm currently not using TailwindCSS, the problem occurs even after a completely fresh Next.js install on the server.
Yeah, I'm now getting the problem with completely fresh Next.js installs too. I made sure my Node and NPM were up to date (per the Next.js docs), trying to work this problem....
... but oddly my site is loading locally just fine, not even any errors in the browser console, just that webpack error in my server console
I had the same today when I try building on vercel:
info - Creating an optimized production build...
20:05:01.655 |
When I build locally I see sometimes the same warning.
I have the same error:
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
- info Linting and checking validity of types...
- info Creating an optimized production build...
<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (659kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
- warn Compiled with warnings
../../../node_modules/.pnpm/next@13.4.2_3j7hb26pwgm6spbxoejtjx6xja/node_modules/next/dist/server/web/spec-extension/image-response.js
A Node.js API is used (process.turbopack at line: 14) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
Import trace for requested module:
../../../node_modules/.pnpm/next@13.4.2_3j7hb26pwgm6spbxoejtjx6xja/node_modules/next/dist/server/web/spec-extension/image-response.js
../../../node_modules/.pnpm/next@13.4.2_3j7hb26pwgm6spbxoejtjx6xja/node_modules/next/server.js
../../../node_modules/.pnpm/next-auth@4.22.1_cmp7sjki5xcmfyvhcokzzink7a/node_modules/next-auth/next/middleware.js
../../../node_modules/.pnpm/next-auth@4.22.1_cmp7sjki5xcmfyvhcokzzink7a/node_modules/next-auth/middleware.js
same error with version 13.4
in my case, I fixed it like this:
did anyone manage to solve it? I have the same problem
@WesleyRafaelp same issue persists here as well, Wes.
what is this weird problem? C'mon Vercel and next team
Resting everything solves it, at least for now
Same
unhandledRejection: [Error: ENOENT: no such file or directory, stat '/Users/.../.next/cache/webpack/server-development/0.pack.gz'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/Users/.../.next/cache/webpack/server-development/0.pack.gz'
}
same error
in my case, I fixed it like this:
- remove node_modules, lockfile and .next folder
- install dependencies again and run app
It worked for me, thanks. I was removing the "node_modules" but not "package-lock.json".
in my case, I fixed it like this:
- remove node_modules, lockfile and .next folder
- install dependencies again and run app
This worked for me too, no need to remove lockfile but node_modules and .next folder. Thanks!!
in my case, I fixed it like this:
- remove node_modules, lockfile and .next folder
- install dependencies again and run app
This worked for me too, no need to remove lockfile but node_modules and .next folder. Thanks!!
I had removed the ".next" and "node_modules" but I was still getting this error, but I when I removed "lockfile", it worked.
in my case, I fixed it like this:
- remove node_modules, lockfile and .next folder
- install dependencies again and run app
Worked for me
in my case, I fixed it like this:
- remove node_modules, lockfile and .next folder
- install dependencies again and run app
work for me too
Not working for me. Have done all efforts advised here.
I'm expericing the same [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies, does anyone have a fix? Removing node_modules, lockfile and .next folder and re-installing dependencies didn't work for me.
Same warning. [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item ...
In my case, it occurs in css-loader, postcss-loader and vanilla-extract-webpack-plugin. even i'm using swc...
I have also deleted the 'node_modules,' '.next/' folder, and lock file, and reinstalled them. However, I am still encountering the following warning:
[webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies.
[webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
Same for me as well, tried everything advised here including rm -rf .next & rm -rf node_modules & rm -rf package-lock.json
and npm i
again. None of them worked unfortunately.
i got the same error but in my windows not in linux, i move the dir project to C and its run normally.
I am using tailwind css.
The same problem appears randomly after deleting /node_modules / .next / package-lock.json and restarting the server.
When this error occurs, the CSS is disabled.
I was having this issue, alongside an issue with next yelling about EOF errors. Cleaning out .next, node_modules, and package-lock.json, and then upgrading from node v20.9.0 to v21.7.3 fixed it for me.
I was unable to remove this warning.
What I tried:
I did fix it however, but passing in --turbo
to just use turbopack instead.
Still having this issue
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!
I had this issue after upgrading node from 22 to node.js23
I had this issue after upgrading node to ver 23 . After downgrade, solved it.
Also getting this in v23, downgrading to 22 fixes it
Also getting this in v23, downgrading to 22 fixes it
Worked for me, thank you! @h-behgam & @longfellowone
in my case, I fixed it like this:
- remove node_modules, lockfile and .next folder
- install dependencies again and run app
its work, firts you can try remote node_modules and .next folder
I tried removing node_modules and .next. still:
▲ Next.js 15.0.1
Creating an optimized production build ...
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
Also getting this in v23, downgrading to 22 fixes it
Interesting - probably not supported yet?
Same for me, using NextJS 14.2.16 and upgrading from Node v22.x.x to v23.0.0 (or even v23.1.0) results in this warning and a broken build. It's probably best to open a specific issue about Node 23 support.
Also getting this in v23, downgrading to 22 fixes it
👉 This solved it for me - MacOS
This is a odd issue and the warnings + possible fixes found when searching are a bit misleading
same for me in nodejs 23 and latest next canary
Yes, the only way is to downgrade to NodeJS 21 or 22 to fix the problems when using NextJS 15
downgrading to v22 works for me.
Same for me, using NextJS 14.2.16 and upgrading from Node v22.x.x to v23.0.0 (or even v23.1.0) results in this warning and a broken build. It's probably best to open a specific issue about Node 23 support.
Thank you so much! I had the same error on MacOS 14.5 - Next.js 14.2.18, downgrading node from v23.1.0 to v22.11.0 fixed it.
Same issue here.
Doesn't work on version v23
node --version
v23.1.0
After I downgraded to:
node --version
v22.11.0
Worked fine.
-- specs MacOs: Version 15.1.1 (24B91) webpack": "^5.96.1" next: "^14.2.17", Typescript:
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
fresh/new create-next-app
To Reproduce
Simply creating a new Next.js project and running yarn build logs the following warning in the console:
result:
Describe the Bug
It's probably linked to the issue 27650 and 35877, but it was not resolved, nor did any of this information help me fix this bug. On a freshly set-upped Debian server with the specs above, Next.js build throws the following error&warning-message (but not an error that cancels the build):
In the result above, there's also an error
Error: EACCES: permission denied, open '/usr/www/users'
. The linux user is not a superuser, so has no access to this folder, but this should not prevent the build from being successful.After this build and exposing the webpage to a port (I can also send a link to test), the homepage "/" shows an 404 error, but the styling, some components like navigation, ... (on a non-fresh build) shows.
This is the content of the .next/cache folder:
Expected Behavior
The build should be finished without any warning/error.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Startet an pm2 process with a proxypass pointing to the port.