Module federation works with "quasar dev" but not with "quasar build" or "quasar serve" #16452
Unanswered
goldyfruit
asked this question in
General - Components / Directives / etc
Replies: 1 comment
-
The problem occurs because the public path is not set correctly during the project build. To fix this, add the following code to the build section of your quasar.config.js file:
|
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,
I followed the example for Quasar and Vue 3 but I got a very strange issue. Everything works fine if I run
quasar dev
on the host and the remote but when I runquasar build
on the host and the remote I got this error:If I run
quasar build
on the host andquasar dev
on the remote, everything work so I guess this is related to something I missed on the remote configuration.Here is the file with the "syntax error"
140.c3d0a1b4.js
:I think I should not have HTML but Javascript in this file (I'm pretty new with all of these).
This is the procedure I followed to work with Quasar, Webpack and the module federation https://github.com/module-federation/module-federation-examples/tree/master/quasar-cli-vue3-webpack-javascript
I tried with
singleton
andeager
but same behaviour.Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions