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

@rollup/plugin-virtual regression in beta.57 #1804

Closed
3 tasks done
patak-dev opened this issue Jan 29, 2021 · 0 comments
Closed
3 tasks done

@rollup/plugin-virtual regression in beta.57 #1804

patak-dev opened this issue Jan 29, 2021 · 0 comments

Comments

@patak-dev
Copy link
Member

  • Read the docs.
  • Use Vite >=2.0. (1.x is no longer supported)
  • If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.

Describe the bug

@rollup/plugin-virtual regression in beta.57 in dev server

$ vite
 > main.js: error: [vite:dep-scan] The argument 'path' must be a string or Uint8Array without null bytes. Received 'C:\\Labs\\vite-rollup\\vite-rollup-plugin-virtual\\\x00virtual:src\\robin.js'
    4 │ import robin from "src/robin.js";
      ╵                   ~~~~~~~~~~~~~~

error when starting dev server

Build works well.

Reproduction

Updated the minimal repro at https://github.com/matias-capeletto/vite-rollup-plugin-virtual

System Info

vite version: 2.0.0-beta.57
Operating System: Windows 10 Home, 10.0.18363 N/A Build 18363
Node version: v15.5.0
Package manager and version: yarn v1.22.10

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant