Composition-api: Vue Composition API v1.0.0-beta.14 breaks package

Created on 15 Sep 2020  ยท  2Comments  ยท  Source: nuxt-community/composition-api

๐Ÿ› The bug
The new release of Vue Composition API (v1.0.0-beta.14) breaks this package. The new release removes the markReactive export (https://github.com/vuejs/composition-api/pull/512), which the Nuxt Composition API currently depends on.

When attempting to compile our Nuxt app after updating the Vue Composition API, we get the following error:

 โœ– Nuxt Fatal Error                                                                                                โ”‚
   โ”‚                                                                                                                     โ”‚
   โ”‚   SyntaxError: The requested module                                                                                 โ”‚
   โ”‚   'file:///Users/xxx/Documents/code/xxx/client/node_modules/@vue/composition-api/index.js' does not   โ”‚
   โ”‚   provide an export named 'markReactive'    

๐Ÿ› ๏ธ To reproduce
Steps to reproduce the behavior:

  1. Update Vue Composition package to v1.0.0-beta.14
  2. Run yarn dev
bug

Most helpful comment

If anyone is looking for a workaround until this is fixed, add a resolution to your package.json for @vue/composition-api:

"resolutions": {
    "@vue/composition-api": "1.0.0-beta.13"
  }

All 2 comments

If anyone is looking for a workaround until this is fixed, add a resolution to your package.json for @vue/composition-api:

"resolutions": {
    "@vue/composition-api": "1.0.0-beta.13"
  }

This is because the 1.0.0-beta.14 version of vue-composition-api has been updated and markReactive has been removed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samnap11 picture samnap11  ยท  6Comments

namadnuno picture namadnuno  ยท  4Comments

JanusSpark picture JanusSpark  ยท  5Comments

JoeyYoung1997 picture JoeyYoung1997  ยท  7Comments

theartkod picture theartkod  ยท  3Comments