vueuse/vue-demi

Doesn't work with yarn 3 pnp

Closed this issue · 1 comments

I encountered an error when using Waline (which depends on vue-demi) that prevented me from completing the build. I am using yarn 3 pnp mode, and only after I set nodeLinker to node-modules does it build successfully. According to the error message and the message of the Waline developer, it seem to be a problem with vue-demi.

The reproduction link: https://codesandbox.io/p/sandbox/brave-cartwright-c2j1vt

The related issue: walinejs/waline#1832

The error message:
image

My issue was resolved by adding these to my .yarnrc.yml file.

packageExtensions:
  'vue-demi@*':
    dependencies:
      'vue': '*'