testing-library / vue-testing-library

🦎 Simple and complete Vue.js testing utilities that encourage good testing practices.
http://testing-library.com/vue
MIT License
1.08k stars 110 forks source link

Error: Cannot find module 'node_modules/@testing-library/vue/compatibility-scripts/vue-apollo-patch.js' #201

Closed danini-the-panini closed 3 years ago

danini-the-panini commented 3 years ago

Describe the bug

Getting the following error when installing the package:

Error: Cannot find module 'node_modules/@testing-library/vue/compatibility-scripts/vue-apollo-patch.js'

To Reproduce

mkdir vue-testing-library-test
cd vue-testing-library-test
yarn add @testing-library/vue@next

Expected behavior

Package installs with no errors.

Related information:

afontcu commented 3 years ago

Hi! Thanks for the report. I believe it is due this line: https://github.com/testing-library/vue-testing-library/blob/next/package.json#L15

changing it from postinstall to another sensible key (we only need this file when developing and before running tests) would fix it. I'll look into it today.

afontcu commented 3 years ago

Okay, it was simple. Got it fixed on 6.3.4 😄 updating VTL will work as expected.

Thank you!