Hi all :wave: I'm getting this error on a Windows ...
# help
a
Hi all šŸ‘‹ I'm getting this error on a Windows machine using Node 16.15.0 when running
npx create-sst@latest
and
npm init sst
, selcting typescript starter then giving a project name:
Copy code
? Select a template typescript-starter
? Destination directory my-sst-app
āœ– Failed
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:372:5)
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1120:11)
    at defaultResolve (node:internal/modules/esm/resolve:1200:3)
    at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
    at ESMLoader.import (node:internal/modules/esm/loader:380:22)
    at importModuleDynamically (node:internal/modules/esm/translators:106:35)
    at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14)
    at execute (file:///C:/Users/me/AppData/Local/npm-cache/_npx/2f33f932f9789c0f/node_modules/create-sst/src/index.mjs:79:36)
    at Command.<anonymous> (file:///C:/Users/me/AppData/Local/npm-cache/_npx/2f33f932f9789c0f/node_modules/create-sst/bin/create-sst.mjs:81:13) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}
Running
npx create-serverless-stack@latest
from the guide still works but scaffolds JS only with class-based stacks.
t
this is a bug with windows, will fix
hey can you check if this is fixed in 1.0.4
a
It's working great for me on Win10, thanks for the fix @thdxr šŸ‘ I'm getting a lot of
npm
vulnerability warnings but that may be a separate issue