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

The URL must be of scheme file #6

Closed
phk422 opened this issue Sep 5, 2023 · 2 comments
Closed

The URL must be of scheme file #6

phk422 opened this issue Sep 5, 2023 · 2 comments

Comments

@phk422
Copy link
Contributor

phk422 commented Sep 5, 2023

Description

Plugin error:The URL must be of scheme file

18:35:54 [vite] Internal server error: The URL must be of scheme file
      at new NodeError (node:internal/errors:399:5)
      at fileURLToPath (node:internal/url:1344:11)
      at Context.load (file:///D:/%E6%BA%90%E7%A0%81%E5%AD%A6%E4%B9%A0/vite-plugin-lqip/example/vite.config.ts.timestamp-1693910148240-d9aa0b54754fb.mjs:24:25)
      at Object.load (file:///D:/%E6%BA%90%E7%A0%81%E5%AD%A6%E4%B9%A0/vite-plugin-lqip/example/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:44254:64)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async loadAndTransform (file:///D:/%E6%BA%90%E7%A0%81%E5%AD%A6%E4%B9%A0/vite-plugin-lqip/example/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:54878:24)
      at async viteTransformMiddleware (file:///D:/%E6%BA%90%E7%A0%81%E5%AD%A6%E4%B9%A0/vite-plugin-lqip/example/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:64345:32)
Name Version
Node.js 20.0.0
OS + version Windows 10

Reproduction

pnpm dev

phk422 pushed a commit to phk422/vite-plugin-lqip that referenced this issue Sep 5, 2023
phk422 added a commit to phk422/vite-plugin-lqip that referenced this issue Sep 5, 2023
drwpow added a commit that referenced this issue Sep 6, 2023
* fix: fixed errors thrown by the fileURLToPath method (#6)

* Update src/index.ts

optimized code

Co-authored-by: Drew Powers <[email protected]>

* update changeset

* style: remove useless code

---------

Co-authored-by: Drew Powers <[email protected]>
@drwpow
Copy link
Owner

drwpow commented Sep 6, 2023

Fixed by #7

@drwpow drwpow closed this as completed Sep 6, 2023
@github-actions github-actions bot mentioned this issue Sep 6, 2023
@drwpow
Copy link
Owner

drwpow commented Sep 6, 2023

This shipped in v0.0.3! Thank you!

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

2 participants