-
-
Notifications
You must be signed in to change notification settings - Fork 120
Closed
Labels
Description
npm run dev fails on win11, what should i do to fix it?
win11
npm run dev error
> npm run dev
> my-new-extension-32@0.0.1 dev
> extension dev
✖︎✖︎✖︎ my-new-extension-32 compiled with errors in 1193 ms.
ERROR in [webpack-extension-target]
Path starts with "_" is preserved by the browser.
The browser will refuse to load this extension.
Please adjust your webpack configuration to remove that.
File(s) starts with "_":
_locales\en\messages.json
_locales\zh_CN\messages.json
but it works with npm run build ok
> npm run build
> my-new-extension@0.0.1 build
> extension build
►►► my-new-extension-32 compiled successfully in 249 ms.
►►► Building my-new-extension-32 extension using Chrome defaults...
.
├─ _locales\zh_CN\messages.json (2.16KB)
├─ _locales\en\messages.json (2.15KB)
└─ manifest.json (0.19KB)
Version: 1.0
Size: 4.50KB
Build Target: Chrome
Build Status: Success
Build completed in 0.25 seconds.
►►► No errors or warnings found. Your extension is ready for deployment.
ubuntu
npm run dev ok
> npm run dev
> my-new-extension-32@0.0.1 dev
> extension dev
►►► my-new-extension-32 compiled successfully in 7876 ms.
npm run build ok
> npm run build
npm run build
> my-new-extension-32@0.0.1 build
> extension build
►►► my-new-extension-32 compiled successfully in 913 ms.
►►► Building my-new-extension-32 extension using Chrome defaults...
.
├─ _locales
│ ├─ zh_CN
│ │ └─ messages.json (2.16KB)
│ └─ en
│ └─ messages.json (2.15KB)
└─ manifest.json (0.19KB)
Version: 1.0
Size: 4.50KB
Build Target: Chrome
Build Status: Success
Build completed in 0.91 seconds.
►►► No errors or warnings found. Your extension is ready for deployment.