How to add Vite plugin vite-plugin-node-polyfills to Quasar? #17721
Unanswered
DarkLite1
asked this question in
General - Components / Directives / etc
Replies: 1 comment
-
|
I assume you probably have an answer by now but try: vitePlugins: [
...nodePolyfills({
globals: {
Buffer: true,
global: true,
process: true,
},
}),
] |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using the googleapis we get the following warning in the console:
To mitigate this issue we need to use the Vite plugin 'vite-plugin-node-polyfills'. Trying to add this in quasar fails
IndexPage.vue
quasar.config.ts
The code above throws errors:
What is the correct way to do this?
Sandbox for testing
Beta Was this translation helpful? Give feedback.
All reactions