vue-typeahead-bootstrap icon indicating copy to clipboard operation
vue-typeahead-bootstrap copied to clipboard

Vite - lodash import don't work

Open kevingill1966 opened this issue 2 years ago • 0 comments

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

kevingill1966 avatar Jan 07 '23 14:01 kevingill1966