Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Problem after 2.1.8, app breaks if using lodash as plugin #232

Open
Daniel4Digital opened this issue Sep 9, 2021 · 6 comments
Open

Problem after 2.1.8, app breaks if using lodash as plugin #232

Daniel4Digital opened this issue Sep 9, 2021 · 6 comments

Comments

@Daniel4Digital
Copy link

Describe the bug
If I run npm update, it will update all dependencies and my app stop to work.
With only npm i, its all fine.
I've debug and discover that the problem comes from @nuxt/components
Where 2.1.8 it's all good, and with last 2.2.1 it breaks.
I've added a screenshot of the error it appears on console.

To Reproduce
It can be related too all the packages I've installed, so dunno how to reproduce this issue alone.
I am assuming it will break any app that make use of lodash.
I am loading lodash via plugin.

Expected behavior
I was not expecting it to break, plus I am not expecting to start needing to import manually in each file the lodash since I'm loading via plugin.

Screenshots
Error: https://i.imgur.com/qKOItgf.png
Code difference between what works and when it doesn't: https://i.imgur.com/v4FyBgM.png

@andreladocruz
Copy link

+1

@pi0
Copy link
Member

pi0 commented Sep 22, 2021

Do you mind somehow providing a reprodution @Daniel4Digital @andreladocruz ?

From the screenshot above, i can see cache loader is enabled which is an experimental feature. If you can at least use npx nuxi-edge info to share basic information would be nice too :)

Cleaning up node_modules, yarn.lock, and .nuxt might help.

@Daniel4Digital
Copy link
Author

Nuxt project info:


  • Operating System: Linux
  • Node Version: v14.17.4
  • Nuxt Version: 2.15.8
  • Package Manager: npm
  • Bundler: Webpack
  • User Config: ssr, head, css, plugins, components, build, buildModules, modules, server, router, axios, proxy, i18n, googleAnalytics, publicRuntimeConfig, recaptcha, vuetify
  • Runtime Modules: @nuxtjs/axios@5.13.6, 8n, @nuxtjs/proxy@2.1.0, @nuxtjs/recaptcha@1.0.4, @nuxtjs/style-resources@1.2.1
  • Build Modules: @nuxtjs/vuetify@1.12.1

@pi0
Copy link
Member

pi0 commented Sep 22, 2021

Thanks, @Daniel4Digital. Didn't cleanup help?

@Daniel4Digital
Copy link
Author

Daniel4Digital commented Sep 22, 2021

Cleaning up node_modules, package-lock, and .nuxt, didn't helped.

And the problem still exist with cache and parallel disabled.

@pi0
Copy link
Member

pi0 commented Sep 22, 2021

Strange... Do you mind sending me a message on discord (pi0#6582) finding a way you share screen or repo with me and quickly finding the issue together? :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants