Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Vite - lodash import don't work #162

Open
kevingill1966 opened this issue Jan 7, 2023 · 0 comments
Open

Vite - lodash import don't work #162

kevingill1966 opened this issue Jan 7, 2023 · 0 comments

Comments

@kevingill1966
Copy link

Hi,

I am migrating a vue2 project to vite (4). In doing so, I found that vue-typeahead-bootstrap wouldn't import.

The problem is in the import of lodash.

import clone from 'lodash/clone'
...

These give an error due to no export "default". There is an outstanding issue in Vite relating to this problem.

  https://github.com/vitejs/vite/issues/6632

I found that if I pinned my release to 2.5.3-beta, it works around the problem.

I don't require a fix for this and hopefully the bug will be fixed in Vite sometime. I am noting the problem here for information

Thanks

Kevin

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

No branches or pull requests

1 participant