vuejs / rollup-plugin-vue

Roll .vue files
https://vuejs.github.io/rollup-plugin-vue
MIT License
843 stars 148 forks source link

TypeError at build for example Typescript project w/ latest packages #459

Open byfairweather opened 2 years ago

byfairweather commented 2 years ago

Version

5.0.0

Reproduction link

github.com

Steps to reproduce

  1. Open examples/typescript from this repo
  2. Fresh install the dependencies: npm install vue@next rollup rollup-plugin-typescript2 typescript rollup-plugin-vue@next
  3. npm run build

What is expected?

Successful Build

What is actually happening?

(plugin vue) TypeError: Cannot read properties of undefined (reading 'reactivityTransform')


Not looking to use Vite. Figured Rollup would be well supported give that this package is downloaded 40k+ times per week.

byfairweather commented 2 years ago

If you manually install a previous version of @vue/compiler-sfc, you can get it working again. Seems it started breaking as of @vue/compiler-sfc@3.1.3

First you hit errors with refSugar, then in later packages, you get reactivityTransform

Would love to see these things work out of the box.