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

Commands to integrate Tailwind into Vuestic don't work on Windows #4174

Open
J4LM opened this issue Mar 5, 2024 · 5 comments · May be fixed by #4215
Open

Commands to integrate Tailwind into Vuestic don't work on Windows #4174

J4LM opened this issue Mar 5, 2024 · 5 comments · May be fixed by #4215
Assignees
Labels
BUG Something isn't working

Comments

@J4LM
Copy link

J4LM commented Mar 5, 2024

Vuestic-ui version: 1.9.3

Description

Commands for the integration with tailwind is just not working at all I keep getting it's not in the registry response.

Reproduction

  1. npm install @vuestic/tailwind
  2. After installation, three commands become available to you:

npx sync-tailwind-with-vuestic
npx watch-tailwind
npx sync-vuestic-with-tailwind

** None of these commands work!!! **

I get this error

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:'

@J4LM J4LM added the BUG Something isn't working label Mar 5, 2024
@J4LM J4LM changed the title Commands to integrate Tailwind into Vuesitic don't work Commands to integrate Tailwind into Vuestic don't work Mar 5, 2024
@m0ksem m0ksem changed the title Commands to integrate Tailwind into Vuestic don't work Commands to integrate Tailwind into Vuestic don't work on Windows Mar 5, 2024
@J4LM
Copy link
Author

J4LM commented Mar 11, 2024

Any idea when this could be fixed? Thanks!!

@m0ksem
Copy link
Contributor

m0ksem commented Mar 11, 2024

Any idea when this could be fixed? Thanks!!

We need someone on Windows to debug and fix it.

@KazakovKirill
Copy link

I faced this bug, could you fix it please

>npx sync-vuestic-with-tailwind
node:internal/modules/esm/load:239
    throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed, schemes);
          ^

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:403:13)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:285:56)
    at new ModuleJob (node:internal/modules/esm/module_job:67:26)
    at #createModuleJob (node:internal/modules/esm/loader:297:17)
    at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:254:34) 
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:235:17)
    at async ModuleLoader.import (node:internal/modules/esm/loader:322:23) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

Node.js v21.7.1

@m0ksem
Copy link
Contributor

m0ksem commented Apr 3, 2024

It must be fixed in 0.1.5, but I'm not able to test it on Windows. Feel free to reopen.

@m0ksem m0ksem closed this as completed Apr 3, 2024
@KazakovKirill
Copy link

KazakovKirill commented Apr 6, 2024

The issue still not resolved
Seems that path must contain file:// in the beginning.
yarn.lock:

"@vuestic/tailwind@^0.1.5":
  version "0.1.5"
  resolved "https://registry.yarnpkg.com/@vuestic/tailwind/-/tailwind-0.1.5.tgz#7133ff144bccb803a682ef47c564c6f5669174b3"
  integrity sha512-9DBbF3YYZNg3jHEfSwCAfdb1HmI3Gg7AScekFsXMjCsu5oW4y4GWu1I451eWgbueCntFxugrDUQM+lXApAmRig==
  dependencies:
    pathe "^1.1.2"

console output:

npx sync-vuestic-with-tailwind
node:internal/modules/esm/load:239
    throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed, schemes);
          ^

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:403:13)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:285:56)
    at new ModuleJob (node:internal/modules/esm/module_job:67:26)
    at #createModuleJob (node:internal/modules/esm/loader:297:17)
    at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:254:34)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:235:17)
    at async ModuleLoader.import (node:internal/modules/esm/loader:322:23) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

Node.js v21.7.2

@m0ksem m0ksem reopened this Apr 6, 2024
gweesin added a commit to gweesin/vuestic-ui that referenced this issue Apr 7, 2024
@gweesin gweesin linked a pull request Apr 7, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Development

Successfully merging a pull request may close this issue.

4 participants