Skip to content

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

Description

@Daniel4Digital

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions