Open danbars opened 2 years ago
Is there anything that I can do to help reproducing it? I know that git link is not ideal, but I couldn't make a codepen for this due to the nature of the project.
You could create a minimal reproduction repo and make it public, so someone could investigate a bit further.
What happened?
I'm building a Quasar app extension. Everything worked fine, until I added dependency on
@vuelidate/core
which depends onvue-demi
.When I try to run the dev-folder, I get the error:
Module not found: Can't resolve imported dependency "@vue/composition-api/dist/vue-composition-api.mjs"
I'm using quasar2 / vue3 so I'm not supposed to install that dependency. When using Vuelidate in a standard Quasar app directly, not via AE, everything works fine.
What did you expect to happen?
I didn't expect that error :)
Reproduction URL
https://github.com/joyform/quasar-form-viewer
How to reproduce?
Sorry that I can't show that in codepen because it's related to AE.
npm i
inside/ui
npm i
inside/ui/dev
/ui
or from/ui/dev/
folder, runnpm run dev
(they run the same thing)You'll see the error in terminal
To make everything work again:
/ui/src/components/TyFormViewer
comment out line 158import { buildValidationRules } from '../utils/utils'
and line 199reactiveValidationRules.value = buildValidationRules(reactiveFormData, reactiveFormSchema)
npm uninstall @vuelidate/core @vuelidate/validators
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
App Extension API
Platforms/Browsers
Chrome, Other
Quasar info output
Relevant log output
Additional context
This is not a browser/os specific issue. It happens in bundling time