question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bundling breaks things

See original GitHub issue

Reproduction

https://github.com/Rigo-m/pinia-issue-repro

Steps to reproduce the behavior

  1. yarn generate
  2. yarn start
  3. 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:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
posvacommented, Nov 10, 2021

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)

1reaction
nash403commented, Nov 10, 2021

Thank you ! Just had to also update @nuxtjs/composition-api and now it works 😃

And also thanks for this amazing package ! 👌

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found