Skip to content
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 エラー #12

Closed
h-yoshikawa44 opened this issue May 14, 2021 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@h-yoshikawa44
Copy link
Owner

h-yoshikawa44 commented May 14, 2021

期待する動作

ローカルサーバ起動時に、何もエラー表示なく起動する

不具合内容

ローカルサーバ起動時に Watchpack のエラーが出る
(サーバ起動自体はできて、ちゃんと動作する)

Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/DumpStack.log.tmp'
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/hiberfil.sys'
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/pagefile.sys'
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/swapfile.sys'

@h-yoshikawa44 h-yoshikawa44 added the bug Something isn't working label May 14, 2021
@h-yoshikawa44 h-yoshikawa44 self-assigned this May 14, 2021
@h-yoshikawa44
Copy link
Owner Author

h-yoshikawa44 commented May 14, 2021

原因調査

#10 から転記。

ローカルサーバ起動自体はできて、サイト自体も特に問題なく動作していそう。
ただ、サーバ起動時にこんなエラーが出た。

Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/DumpStack.log.tmp'
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/hiberfil.sys'
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/pagefile.sys'
Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/swapfile.sys'

どうも Docusaurus のアプデにより、内部的に使われている webpack が5系になったことで出るようになったっぽい。
GitHub - webpack/watchpack - Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/...'

WSL で Windows 側にプロジェクトファイルがあって操作しているので起きるらしい。
プロジェクトファイルを WSL 側に移動させて作業すると出なくなると書いてある。
でも、個人的には Windows 側におきたいところ。

How can I fix the web-dev-server execution error?
WSL のバグ?と書いてあったりもする。
そもそもなんで、webpack はスキャンするんだろう。

@h-yoshikawa44
Copy link
Owner Author

Node.js のバージョン管理を WSL 側から Windows 側(Volta)に移行した関係で、表示されなくなったのでクローズ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant