-
Notifications
You must be signed in to change notification settings - Fork 109
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
vite-plugin-eslint is not compatible with virtual modules #535
Comments
This appears to be a pnpm caching issue. If you can create a reproduction I can take a look. Others have tried and been unable to, which indicates there is something corrupted locally. |
i resolve this by deleting
|
Can you share a reproduction? I can't tell what's happening otherwise. |
@hi-reeve Did you find a solution? I am facing the same issue. UPDATE: Finally found a solution by excluding /virtual:/ //vite.config.js
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import eslint from 'vite-plugin-eslint';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
eslint({
exclude: ['/virtual:/**', 'node_modules/**'],
}),
}); |
I suggest upgrading to Storybook 7 if you want to use vite 4, I never got it fully working back in Storybook 6.5. |
The issue is still there with Storybook 7 (I am currently using 7.0.4).
|
OK, thanks. This repo is the code for the 6.5 version, which is why I thought you weren't using 7. |
@IanVS |
Hi i have same issue : |
Hi, have the same issue: "vite": "^4.1.0", Solved, as written above. Thank you |
This doesn't have anything to do with Storybook, it's an issue in |
1 similar comment
This doesn't have anything to do with Storybook, it's an issue in |
What version of
vite
are you using?4.0.2
System info and storybook versions
Environment Info:
System:
OS: macOS 13.1
CPU: (8) arm64 Apple M1 Pro
Binaries:
Node: 18.12.0 - ~/.nvm/versions/node/v18.12.0/bin/node
npm: 8.19.2 - ~/.nvm/versions/node/v18.12.0/bin/npm
Browsers:
Safari: 16.2
npmPackages:
@storybook/addon-essentials: ^7.0.0-beta.12 => 7.0.0-beta.12
@storybook/addon-interactions: ^7.0.0-beta.12 => 7.0.0-beta.12
@storybook/addon-links: ^7.0.0-beta.12 => 7.0.0-beta.12
@storybook/blocks: ^7.0.0-beta.12 => 7.0.0-beta.12
@storybook/testing-library: ^0.0.13 => 0.0.13
@storybook/vue3: ^7.0.0-beta.12 => 7.0.0-beta.12
@storybook/vue3-vite: ^7.0.0-beta.12 => 7.0.0-beta.12
Describe the Bug
just install storybook on my project
trying to run storybook for the first time and got this error
Link to Minimal Reproducible Example
No response
Participation
The text was updated successfully, but these errors were encountered: