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

Support Windows without WSL #2635

Open
retlehs opened this issue Aug 11, 2024 · 2 comments
Open

Support Windows without WSL #2635

retlehs opened this issue Aug 11, 2024 · 2 comments
Labels
enhancement New feature or request stale

Comments

@retlehs
Copy link
Member

retlehs commented Aug 11, 2024

bud.js currently only supports folks on Windows if you're within a WSL environment, but we'd like to officially support Windows without WSL

When trying to run a stock Sage 10 build on Windows, you get hit with this error:

✘ Could not import @roots/bud-framework/env

Note

This error can also occur at times in non-Windows environments — if you've ended up on this issue after searching for that error and you are not attempting to run bud.js on Windows, then please search this repo's issues or on https://discourse.roots.io/ for your problem

If you're reached this issue and you're using Windows, then you must use WSL for now

Some output of yarn bud build --log --no-dashboard on a Windows machine:

[module] » [cache miss] path: @roots/bud-build => C:\Users\focus\Downloads\sage\node_modules\@roots\bud-build\lib\index.js
[module] » [cache miss] path: @roots/bud-cache => C:\Users\focus\Downloads\sage\node_modules\@roots\bud-cache\lib\index.js
[module] » [cache miss] path: @roots/bud-compiler => C:\Users\focus\Downloads\sage\node_modules\@roots\bud-compiler\lib\index.js
[module] » [cache miss] path: @roots/bud-dashboard => C:\Users\focus\Downloads\sage\node_modules\@roots\bud-dashboard\lib\index.js
[module] » [cache miss] path: @roots/bud-extensions => C:\Users\focus\Downloads\sage\node_modules\@roots\bud-extensions\lib\index.js
[module] » [cache miss] path: @roots/bud-framework/project => C:\Users\focus\Downloads\sage\node_modules\@roots\bud-framework\lib\project.js
[module] » Could not import module: @roots/bud-framework/env Removing from cached module registry. 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'
}
[module] » Could not import module: @roots/bud-hooks Removing from cached module registry. 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 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'
}
[module] » Could not import module: @roots/bud-framework/project Removing from cached module registry. 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'
}
BudError

x Could not import @roots/bud-framework/env

i Stack trace

  at Module.import (/C:/Users/focus/Downloads/sage/node_modules/@roots/bud-framework/lib/module.js:141:28)
  at async /C:/Users/focus/Downloads/sage/node_modules/@roots/bud-framework/lib/bootstrap.js:93:21
@retlehs retlehs added the enhancement New feature or request label Aug 11, 2024
Copy link

Message to comment on stale issues. If none provided, will not mark issues stale

@github-actions github-actions bot added the stale label Oct 11, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
@Log1x Log1x reopened this Oct 18, 2024
@github-actions github-actions bot removed the stale label Oct 19, 2024
Copy link

Message to comment on stale issues. If none provided, will not mark issues stale

@github-actions github-actions bot added the stale label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

2 participants