Replies: 1 comment
-
Hi Sandeep, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We have a internal library written with requirejs. It is referenced as a git submodule in our React project (scaffolded using cra + ejected) as external dependency. All the imports worked fine out of the box and there were no issues with the amd files.
I wanted to migrate from cra to vite (for performance ofcourse). But i get the following error on the amd module import.
Uncaught SyntaxError: The requested module '/lib/fancy/js/Configuration.js' does not provide an export named 'default' (at apiConstants.js:5:8)
The Configuration.js is like this
I have tried adding rollup and babel plugins that transform amd to es6 but none of them worked. Could someone please help me with this.
Here is the vite.config.js
Thanks
Beta Was this translation helpful? Give feedback.
All reactions