-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/DumpStack.log.tmp' #27479
Comments
This is due to Webpack 5's broken Watchpack. From a quick glance there are a bunch of work arounds in this issue but even after apply them the nextjs project does not refresh. Not sure whats different in nextjs. |
For a temporary workaround, add |
Hi there, still with this issue on WSL ubuntu, but now when I do webpack5 it gives me the error Error: Webpack 4 is no longer supported in Next.js. Please upgrade to webpack 5 by removing "webpack5: false" from n Any updates on this? |
For those who get's here, follow: webpack/watchpack#187 (comment) |
I understand the underlying issue is with webpack. But I would like to see Next.js address this if webpack won't. My first experience with Next.js was to get an error trying to access system files at the same time it mentions telemetry. Was ready to chuck Next.js then and there if they were trying to read sensitive system files for telemetry. Ended up in long meeting with our corporate security team to make sure some bad actor in the dependency chain didn't just steal a bunch of information.
|
Please verify that your issue can be recreated with Why was this issue marked with the
|
This issue has been automatically closed because it wasn't verified against next@canary. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
11.0.1
What version of Node.js are you using?
v14.17.3
What browser are you using?
Chrome
What operating system are you using?
WSL 2 for Windows 10
How are you deploying your application?
next dev
Describe the Bug
I am starting with the Next.js Official Tutorial and I encountered this issue while running the application on my WSL2 Windows terminal. I ran the following command:
On Running
npm run dev
, I get the following error messages:The server does start up, but the fast refresh doesn't work because of which for any change, I need to restart my server. I initially thought it might be something related to the Tutorial application. So I created a new Next.js application using the command:
But this resulted in the same error.
Expected Behavior
To Reproduce
While using WSL2 for Ubuntu, run the command:
Then go into the folder and run
npm run dev
. After that make any changes to thepages/index.js
and refresh the page. It doesn't pick up the changes. Then restart the server to see the changes getting picked up.The text was updated successfully, but these errors were encountered: