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

Version 5.0.2 of the plugin breaks the Vue migration build in MODE: 2 #330

Closed
8 of 9 tasks
matej-pavlik opened this issue Jan 5, 2024 · 2 comments · Fixed by vuejs/core#10034
Closed
8 of 9 tasks
Labels
bug: upstream Bug in a dependency of this repository bug Something isn't working p5-urgent 🔥 Fix build-breaking bugs affecting most users, should be released ASAP (priority)

Comments

@matej-pavlik
Copy link

Related plugins

Describe the bug

Hi,
I am moving a Vue 2 (Vite) application to the Vue migration build. After investigation, I found that version 5.0.2 breaks the Vue migration build if configured with MODE: 2. Version 5.0.1 works fine.

Reproduction

https://stackblitz.com/edit/vitejs-vite-1vh64v?file=package.json

Steps to reproduce

The reproduction repo should work by default.

Change the @vitejs/plugin-vue version from 5.0.1 to 5.0.2 and run npm install && npm run dev in the terminal. Vite now outputs an [plugin:vite:vue] Cannot read properties of undefined (reading 'start') error.

System Info

System:
  OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
  CPU: (8) x64 AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
  Memory: 2.01 GB / 6.70 GB
  Container: Yes
  Shell: 5.1.16 - /bin/bash
Binaries:
  Node: 20.9.0 - /usr/local/bin/node
  Yarn: 3.6.0 - /usr/bin/yarn
  npm: 10.1.0 - /usr/local/bin/npm
  pnpm: 8.11.0 - /usr/local/bin/pnpm
  Watchman: 20230222.123454.0 - /usr/local/bin/watchman
Browsers:
  Chrome: 120.0.6099.62

Used Package Manager

npm

Logs

No response

Validations

@irrg
Copy link

irrg commented Jan 5, 2024

Experiencing the same issue. Pinning to 5.0.1 after reading this bug report—thank you for saving my sanity.

@haoqunjiang haoqunjiang added bug Something isn't working p5-urgent 🔥 Fix build-breaking bugs affecting most users, should be released ASAP (priority) and removed pending triage labels Jan 8, 2024
@haoqunjiang
Copy link
Member

I'm still looking into this issue but here's a workaround:

    vue({
      template: {
        compilerOptions: {
          compatConfig: {
            MODE: 2,
            COMPILER_NATIVE_TEMPLATE: false,
          },
        },
      },
    })

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: upstream Bug in a dependency of this repository bug Something isn't working p5-urgent 🔥 Fix build-breaking bugs affecting most users, should be released ASAP (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants