Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 323 Bytes

global-nodes.md

File metadata and controls

14 lines (11 loc) · 323 Bytes

Resolving global is not defined at node_modules

To resolve this issue we can define a global variable like so.

As global variable is not available. It will work when you define a global in vite.config

export default defineConfig({
     plugins: [react()], 
     define: { 
        global: {}
    }
})