Bundling breaks things
See original GitHub issueReproduction
https://github.com/Rigo-m/pinia-issue-repro
Steps to reproduce the behavior
yarn generate
yarn start
’- See error in console (Vue2.use is not a function)
Expected behavior
Should compile correctly
Actual behavior
Development environment works correctly, bundling nuxt2 with nuxt generate breaks the website.
Additional information
The reproduction repo is the same as issue #767 , so pull new version if you hadn’t.
Also, in the repo you can see issue #767 fixed by using @nuxtjs/composition-api#fix/transpile-server-vue
.
Also, in the repo you can switch between official @pinia/nuxt
module and a local module (line 33/34 nuxt.config.js
) which has been stripped from Vue Demi logic (thanks to @nash403 ) and shows that the culprit is Vue Demi itself somehow.
I thought of creating a new issue since this problem is now reproducible with the latest @pinia/nuxt
module.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Break Room Los Angeles – Break, Smash, Destroy!
Ever wanted to just let it all out and SMASH things? ... BUNDLES. Why do only 1 activity when you can do 2....
Read more >The Pros and Cons of Bundled Pricing
Breaking things apart lets you see how the seller values each item, which is likely to differ from your perceived or real value...
Read more >I placed 1000000000 Items inside a Bundle, breaking the ...
Humble bundles - 1.17 Caves Update snapshot ... I placed 1000000000 Items inside a Bundle, breaking the Minecraft screen.
Read more >Temptation Bundling: A Simple Way to Boost Your Willpower
Read this article to learn how to use a simple strategy called temptation bundling to boost your willpower and stop procrastinating for good....
Read more >Asp.net bundling breaks jquery UI - Stack Overflow
This always happened to me. I'm not sure if this is the same thing. Make sure the code below is not executed twice...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I pushed a new version that seems to work. Make sure to remove pinia from transpile option if you still have it and let me know if it doesn’t work (I tested with your repro and now it works)
Thank you ! Just had to also update @nuxtjs/composition-api and now it works 😃
And also thanks for this amazing package ! 👌