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

Not working on Windows #38

Open
otabekoff opened this issue Aug 25, 2024 · 5 comments
Open

Not working on Windows #38

otabekoff opened this issue Aug 25, 2024 · 5 comments

Comments

@otabekoff
Copy link

I tried using Windows Default Terminal on Windows 11, CMD, Ubuntu 24.04 LTS, Git Bash and didn't get success on Windows machine. It is giving error of something like this.

User@Otabek MINGW64 /c/vueprojects/cppjs-sample-web-vue-vite
$ yarn dev
yarn run v1.22.22
warning ..\package.json: No license field
$ vite
failed to load config from C:\vueprojects\cppjs-sample-web-vue-vite\vite.config.mjs
error when starting dev server:
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)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This happened after I changed dependecy versions from workspace to actual versions of packages. But in fact, I even can't reach upto here without this. Because installing with yarn, npm gave errors. Also, tried pnpm with no success. Even npm and npx stuffs are not working. Please update lib to support windows file scheme too.

@bugra9
Copy link
Owner

bugra9 commented Aug 25, 2024

Hi @otabekoff,

I am developing the project on macOS and have not tried it on Windows. I will prepare a Windows environment and try to run it in that environment and get back to you.

@bekkydev
Copy link

Hi @otabekoff,

I am developing the project on macOS and have not tried it on Windows. I will prepare a Windows environment and try to run it in that environment and get back to you.

If I could install, write some app with it and have some experience I might be helping to develop and writing docs. Now, documentation is missing many pages.

bugra9 added a commit that referenced this issue Oct 15, 2024
@bugra9
Copy link
Owner

bugra9 commented Oct 20, 2024

Hi @otabekoff,

Thanks for your patience! I've set up a Windows environment, replicated the issue, and just pushed a fix for it. 🎉

Please let me know if this resolves the issue for you.

@otabekoff
Copy link
Author

OK, it is working on some laptops with windows 10 but not working on some windows 11 devices. I don't know why but it may be due to the version of NPM or Node I think.

@bugra9
Copy link
Owner

bugra9 commented Oct 23, 2024

Are the errors similar to the ones you mentioned in your first message?

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

No branches or pull requests

3 participants