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.

Broken examples after #11158

See original GitHub issue

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 vue-ts examples linked at: https://vitejs.dev/guide/#trying-vite-online

$ vite
failed to load config from /home/projects/vitejs-vite-lrnemy/vite.config.js
error when starting dev server:
file:///home/projects/vitejs-vite-lrnemy/node_modules/@vitejs/plugin-vue/dist/index.mjs:2
import { isCSSRequest, normalizePath as normalizePath$1, transformWithEsbuild, formatPostcssSourceMap, createFilter } from 'vite';
         ^^^^^^^^^^^^
SyntaxError: The requested module 'vite' does not provide an export named 'isCSSRequest'
    at _instantiate (https://vitejsvitelrnemy-o15z.w-corp.staticblitz.com/blitz.b6c96f782a49b3e017dca41830943768f8acbe40.js:6:986481)

I tried a few different versions of @vitejs/plugin-vue:

  • 3.2.0 -> works
  • 4.0.0-alpha.0 -> error
  • 4.0.0-alpha.2 -> error

Reproduction

https://stackblitz.com/edit/vitejs-example-vue-alpha-borked?file=package.json

Steps to reproduce

  1. Go to https://stackblitz.com/edit/vitejs-example-vue-alpha-borked?file=package.json
  2. It should run npm install && npm run dev
  3. It should end up with an error where the Vue plugin cannot import isCSSRequest from 'vite'.

System Info

I can reproduce the issue locally on macOS as well.

  System:
    OS: macOS 13.0.1
    CPU: (8) arm64 Apple M1
    Memory: 58.41 MB / 8.00 GB
    Shell: 3.5.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 18.12.1 - /opt/homebrew/opt/node@18/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.19.2 - /Volumes/Pieces/.npm/bin/npm
  Browsers:
    Chrome: 108.0.5359.71
    Firefox Nightly: 109.0a1
    Safari: 16.1
  npmPackages:
    @vitejs/plugin-vue: ^4.0.0-alpha.2 => 4.0.0-alpha.2
    vite: ^3.2.4 => 3.2.4

Used Package Manager

npm

Logs

No response

Validations

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:5
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xpluscalcommented, Dec 22, 2022

@sapphi-red you’re saying the stable version of vite? I’m currently experiencing this error only using yarn and on vite 3.2.5

0reactions
sapphi-redcommented, Dec 23, 2022

I don’t get what you mean. plugin-vue 4.0.0 works with Vite 4.0.0. It doesn’t work with Vite 3.x as specified by peerDeps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

THE MAGNETIC FIELD OF ACTIVE REGION 11158 DURING ...
In this study we applied the COR-NLFFF code to NOAA Active Region 11158, ... which can be broken down into three major tasks:...
Read more >
VrShellNavigationTest#test2dTo2d broken in multiple ways (?)
VrShellNavigationTest#test2dTo2d seems broken in 3 completely unrelated ways. First, it's failing 100% of the time on the Nougat bot.
Read more >
Combine exprIsTrivial and cpe_ExprIsTrivial (#11158) · Issues ...
When quickly reviewing D1656 in response to some validation issues I noticed that these exprIsTrivial variants differ slightly in their treatment of literals....
Read more >
Reading Sappho "d0e11158" - UC Press E-Books Collection
Within the male-structured Greek gender system, those elements had formerly been excluded from masculine eroticism and subsumed wholly under female sexuality.
Read more >
Verb Worksheets.pdf - Warren County Public Schools
EXAMPLE. PV. 1. The arctic tundra is characterized by long ... EXERCISE B In the following sentences, first determine whether the sentence is...
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