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
Setup with additional webextension-toolbox.config.js config seems to fail on windows 11 #656
Comments
The reason for the code you removed was so that it worked in github actions on their windows builder. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@JinKim7 is there any update on the issue? |
@here-nerd Whatever works! I'm all for it if we need a work around in github for windows |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Resolved in #832 |
I'm getting a similar error in with "@webextension-toolbox/webextension-toolbox" version "7.1.1" with Git Bash in Windows. $ npx webextension-toolbox dev chrome --config webextension-toolbox.config.js
✔ Loading webpack config from C:\Users\Justin\workspace\onhello\webextension-toolbox.config.js
node:internal/modules/esm/load:239
throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed, schemes);
^
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:239:11)
at defaultLoad (node:internal/modules/esm/load:130:3)
at ModuleLoader.load (node:internal/modules/esm/loader:409:13)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:56)
at new ModuleJob (node:internal/modules/esm/module_job:65:26)
at #createModuleJob (node:internal/modules/esm/loader:303:17)
at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:260:34)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:241:17)
at async ModuleLoader.import (node:internal/modules/esm/loader:328:23) {
code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}
Node.js v20.11.1 In node_modules@webextension-toolbox\webextension-toolbox\dist\common\compile.js, I changed: const configModule = await import(path); to const configModule = await import(`file://${path}`); and it worked for me. I tried many ways and combinations to input the path differently for the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Expected Behavior
Running dev/build does not throw
Error: Cannot find module
error.Current Behavior
Running
webextension-toolbox build -s src --no-manifest-validation "chrome"
throws:Steps to Reproduce (for bugs)
webextension-toolbox.config.js
configuration filenpm run dev chrome
Context
Running build with additional webpack configuration seems to fail on windows 11.
When i remove
from compile.js it succeeds.
For context I use react, typescript setup and manifest v3 but I don't think that it affects the behavior.
Your Environment
The text was updated successfully, but these errors were encountered: