Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Error on build with brand new Vue project #104

Open
Wozza365 opened this issue Sep 14, 2022 · 0 comments
Open

Error on build with brand new Vue project #104

Wozza365 opened this issue Sep 14, 2022 · 0 comments

Comments

@Wozza365
Copy link

Wozza365 commented Sep 14, 2022

Same result on 3 separate machines, Windows 10 + Node 16.10.0 / 16.13.0 / 16.15.0

Ran npm init vitebook
Go through the steps for a Vue project
Run npm install
Add one sample story (literally just one element in a .vue template
Then run npm vitebook:build

Build then fails with the following error:

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs 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:371:5)
    at defaultResolve (node:internal/modules/esm/resolve:1016:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40)
    at ESMLoader.import (node:internal/modules/esm/loader:276:22)
    at importModuleDynamically (node:internal/modules/esm/translators:111:35)
    at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14)
    at build2 (file:///C:/Source/any/node_modules/@vitebook/core/dist/node/cli/run.js:17335:50)
    at async buildCommand (file:///C:/Source/any/node_modules/@vitebook/core/dist/node/cli/run.js:18057:3) {   
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'

Has anyone had this and been able to resolve it? We've tried on 3 separate machines and all return this error. Not much helpful info on this either.

And vitebook:dev command runs and loads the site/story as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant