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
Trace: 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:'
This happens for npx elm-pages run Hello, npx elm-pages run script/src/Hello.elm, npx elm-pages run C:/mypath/src/Hello.elm, and npx elm-pages run file:///C:/mypath/src/Hello.elm
The text was updated successfully, but these errors were encountered:
I encountered the same issue and found a immediate workaround in Windows: I installed the WSL (Windows Subsystem Linux) - see https://learn.microsoft.com/en-us/windows/wsl/setup/environment
Then I installed elm, lamdera, nvm, node and elm-pages in this ubuntu distribution. All scripts work fine.
Nevertheless, would be great for windows users to fix the issue, so that it would run in native windows, too.
I followed the instructions here https://elm-pages-v3.netlify.app/docs/elm-pages-scripts/#quick-start to add a script to a non-elm-pages project. When I try running it I get a JS runtime error though
This happens for
npx elm-pages run Hello
,npx elm-pages run script/src/Hello.elm
,npx elm-pages run C:/mypath/src/Hello.elm
, andnpx elm-pages run file:///C:/mypath/src/Hello.elm
The text was updated successfully, but these errors were encountered: