Error after upgrading to Vue 3: "default" is not exported by @vue/[email protected] #13865
-
BackgroundWe are trying to migrate a Dockerized Vue 2 app to Vue 3 and have upgraded (among other packages):
To work through the migration, we have made the required changes to:
ProblemAfter upgrading the packages and making the required changes, we encounter the error
and the app cannot be built.
QuestionHow can this problem be resolved so that the app can be built? Is there anything that we should explore? Any ideas would be greatly appreciated. Thanks! Further information (edited)After updating vite.config.js to have:
the build continues, but then fails later with:
By changing a number of imports throughout the app from, e.g.:
to
the build completes, but the app fails to load due to an error due to dayjs.min.js:1:7054:
Note that tsconfig.json includes:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured out the issue. The problem is that one dependency (vue-slider-component 3.2.24) is incompatible with Vue 3. Commenting out the code related to it allows the build to complete without the need to change the imports or update vite.config.js with:
|
Beta Was this translation helpful? Give feedback.
Figured out the issue. The problem is that one dependency (vue-slider-component 3.2.24) is incompatible with Vue 3.
Commenting out the code related to it allows the build to complete without the need to change the imports or update vite.config.js with: