v-close-popup directive doesn't work within quasar vite-plugin externalized libraries #17424
Labels
area/directives
bug/0-needs-info
Need more info to reproduce
flavour/vue-cli-plugin
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
We are developing a standalone component library for our application that is effectively wrapper components around quasar components which will be used in our set of applications.
What we have discovered is that when Vite is bundling quasar into the library's output build artifacts, there are files that the quasar library uses to track internal caches of "portal" objects so that
v-close-popup
can look through said cache and close a given portal.However, because the caches are not designed in a way to come from a separate package, it seems that module resolution across the component library and the app using the library end up with different caches when resolving the paths of these files.
Specifically, the in-memory cache used here named
portalProxyList
https://github.com/quasarframework/quasar/blob/dev/ui/src/utils/private.portal/portal.js#L3Externalizing quasar in our vite config doesn't resolve the issue so we are at loss for what we could do on our end
Our vite.config.js
What did you expect to happen?
We'd expect the
v-close-popup
to still work if built from a separate wrapping libraryReproduction URL
https://na.com
How to reproduce?
v-close-popup
directive to one of the q-dialog's buttonsFlavour
Vue CLI Plugin (vue-cli-plugin-quasar)
Areas
Directives (quasar)
Platforms/Browsers
Chrome
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: