UMD script import in HTML header not working #15116
Unanswered
christian-judt
asked this question in
General - Components / Directives / etc
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently trying to integrate Quasar into a PHP website using its UMD flavour (using Vue 3.2.45 and Quasar 2.10.2).
Importing the Vue and Quasar-UMD script files at the end of the "body" tag as works as expected. Moving the Vue script file to the HTML header doesn't change that. Moving the Quasar-UMD script file to the HTML header after that causes a "Uncaught TypeError: Cannot read properties of null (reading 'appendChild')" error and Quasar is not loaded properly anymore.
It seems like some code in the Quasar-UMD script file tries to insert DOM elements into the "body" element before it exists. Is it possible to avoid this behavior? If yes, how?
Maybe this problem is caused by a specific component I don't actually need? If yes, can I somehow compile a custom UMD script file without this component?
Beta Was this translation helpful? Give feedback.
All reactions