question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Error with using package (vite4) | Vue

See original GitHub issue

What version of vite are you using?

4.0.1

System info and storybook versions

System: OS: macOS 13.0.1 CPU: (8) arm64 Apple M1 Pro Binaries: Node: 16.11.1 - /usr/local/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.0.0 - /usr/local/bin/npm Browsers: Chrome: 108.0.5359.98 Safari: 16.1 npmPackages: @storybook/addon-actions: ^6.5.14 => 6.5.14 @storybook/addon-essentials: ^6.5.14 => 6.5.14 @storybook/addon-interactions: ^6.5.14 => 6.5.14 @storybook/addon-links: ^6.5.14 => 6.5.14 @storybook/builder-vite: ^0.2.5 => 0.2.5 @storybook/testing-library: ^0.0.13 => 0.0.13 @storybook/vue3: ^6.5.14 => 6.5.14

Describe the Bug

npm WARN ERESOLVE overriding peer dependency npm WARN ERESOLVE overriding peer dependency npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @storybook/builder-vite@0.2.5 npm ERR! Found: @vitejs/plugin-vue@4.0.0 npm ERR! node_modules/@vitejs/plugin-vue npm ERR! dev @vitejs/plugin-vue@“^4.0.0” from the root project


Hello everyone. Is vite4 support planned?

Link to Minimal Reproducible Example

No response

Participation

  • I am willing to submit a pull request for this issue.

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
IanVScommented, Dec 16, 2022

I’ll publish an update to use vite 4 as 0.3.0 when I get a chance. Most of my effort has been spent getting Storybook 7.0 beta polished up.

3reactions
landoephancommented, Dec 15, 2022

I’m getting the following npm error when running npm install after I updated my package.json to use vite 4:

npm ERR! Could not resolve dependency:
npm ERR! peerOptional @vitejs/plugin-vue@"^3.0.0" from @storybook/builder-vite@0.2.5
npm ERR! node_modules/@storybook/builder-vite
npm ERR!   dev @storybook/builder-vite@"0.2.5" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @vitejs/plugin-vue@3.2.0
npm ERR! node_modules/@vitejs/plugin-vue
npm ERR!   peerOptional @vitejs/plugin-vue@"^3.0.0" from @storybook/builder-vite@0.2.5
npm ERR!   node_modules/@storybook/builder-vite
npm ERR!     dev @storybook/builder-vite@"0.2.5" from the root project
Read more comments on GitHub >

github_iconTop Results From Across the Web

Broken examples after #11158 · Issue #11190 · vitejs/vite
Describe the bug PR #11158 updated a few example's package.json to use alpha versions of some Vite plugins. This breaks the vue and...
Read more >
Troubleshooting - Vite
Vite cannot handle and does not support code that only runs on non-strict mode (sloppy mode). This is because Vite uses ESM and...
Read more >
published vite vue 3 npm package have problem with styles
there are two problems . first problem is that when you install this package , styles doesn't apply. I can see style.css file...
Read more >
yarn create vite error | The AI Search Engine You Control
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should...
Read more >
User Guide | eslint-plugin-vue
By default all rules from base and essential categories report ESLint errors. Other rules - because they're not covering potential bugs in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found