You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to test out how to create a blog with Rocket, but it seems running npm run build leads to an error with absolute paths on windows. I couldn't find any specific info about Rocket not supporting windows so I'm assuming it would. Correct me if I'm wrong.
OS: Windows 10 (Build 19044.2130)
Node: 18.12.0
npm: 8.19.2
Steps to reproduce:
run npx @rocket/create@latest --template 02-blog-starter in an empty folder
navigate to that folder and run npm install
run npm run build
Error:
C:\gitnation\dndblog\rocket-02-blog-starter>npm run build
> [email protected] build
> rocket build
node:internal/errors:484
ErrorCaptureStackTrace(err);
^
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
at new NodeError (node:internal/errors:393:5)
at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1026:11)
at defaultResolve (node:internal/modules/esm/resolve:1106:3)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ESMLoader.import (node:internal/modules/esm/loader:525:22)
at importModuleDynamically (node:internal/modules/esm/translators:110:35)
at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14)
at RocketCli.applyConfigFile (file:///C:/gitnation/dndblog/rocket-02-blog-starter/node_modules/@rocket/cli/src/RocketCli.js:124:27) {
code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}
Node.js v18.12.0
As a sidenote, I also needed to delete the .degit folder just to get npx @rocket/create@latest to work. The NODE_DEBUG environment variable also doesn't work when running npm run start but changing it to SET NODE_DEBUG seems to help.
The text was updated successfully, but these errors were encountered:
I wanted to test out how to create a blog with Rocket, but it seems running
npm run build
leads to an error with absolute paths on windows. I couldn't find any specific info about Rocket not supporting windows so I'm assuming it would. Correct me if I'm wrong.I followed the instructions here: https://github.com/modernweb-dev/rocket/tree/main/examples/02-blog-starter
OS: Windows 10 (Build 19044.2130)
Node: 18.12.0
npm: 8.19.2
Steps to reproduce:
npx @rocket/create@latest --template 02-blog-starter
in an empty foldernpm install
npm run build
Error:
As a sidenote, I also needed to delete the
.degit
folder just to getnpx @rocket/create@latest
to work. TheNODE_DEBUG
environment variable also doesn't work when runningnpm run start
but changing it toSET NODE_DEBUG
seems to help.The text was updated successfully, but these errors were encountered: