You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clicking on the file/line I can see why its a problem but not sure how to correct it: import __vite__cjsImport0_jquery from "/node_modules/.vite/deps/jquery.js?v=17be8314"; const jQuery = __vite__cjsImport0_jquery.__esModule ? __vite__cjsImport0_jquery.default : __vite__cjsImport0_jquery
Hi
I'm using the template-vite-vanilla-tailwind-v3 package from vitawind.
I'm having this issue when I try to import some packages. I have tried it with a jquery package and slick-carousel.
Console log error looks returns:
Uncaught TypeError: Cannot read properties of undefined (reading '__esModule')
Clicking on the file/line I can see why its a problem but not sure how to correct it:
import __vite__cjsImport0_jquery from "/node_modules/.vite/deps/jquery.js?v=17be8314"; const jQuery = __vite__cjsImport0_jquery.__esModule ? __vite__cjsImport0_jquery.default : __vite__cjsImport0_jquery
import __vite__cjsImport1_slickCarousel from "/node_modules/.vite/deps/slick-carousel.js?v=17be8314"; const slick = __vite__cjsImport1_slickCarousel.__esModule ? __vite__cjsImport1_slickCarousel.default : __vite__cjsImport1_slickCarousel
My package.json file looks like this:
In terms of config files I have the following
Will I need to manually config the vite.config.js file for this esModule to be fixed?
The text was updated successfully, but these errors were encountered: