rollup-plugin-vue icon indicating copy to clipboard operation
rollup-plugin-vue copied to clipboard

TypeError at build for example Typescript project w/ latest packages

Open byfairweather opened this issue 3 years ago • 1 comments

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 avatar Dec 18 '21 19:12 byfairweather

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

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

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

byfairweather avatar Dec 18 '21 19:12 byfairweather