You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Nuxt starter template is enough to reproduce the issue. You just need to open it in Chrome 65
Describe the bug
I'm using the Nuxt starter template. When I run yarn build and then preview in Chrome 65 browser. I get an error in the browser console: entry.J2zEOy1-.js:13 Uncaught SyntaxError: Unexpected token ?
In order to solve this problem, I use the Vite settings in nuxt.config
vite: {
build: {
target: ['chrome65'],
},
}
After restarting yarn build, I get the following error
Uncaught ReferenceError: globalThis is not defined
at entry.IRimNRDK.js:17
I tried using the plugin @vitejs/plugin-legacy and even nuxt-vite-legacy and separately connect the polyfile for globalThis, but it does not bring any effect, despite the fact that the final Html contains scripts with polyfile and legacy code
and there is an error in the console
Additional context
No response
Logs
entry-legacy.rwZSLLd-.js:1 Uncaught ReferenceError: System is not defined
at entry-legacy.rwZSLLd-.js:1
(anonymous) @ entry-legacy.rwZSLLd-.js:1
entry.VwnH7qei.js:17 Uncaught ReferenceError: globalThis is not defined
at entry.VwnH7qei.js:17
(anonymous) @ entry.VwnH7qei.js:17
The error refers to this code
globalThis.__buildAssetsURL=Gt,globalThis.__publicAssetsURL=m1;
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
The Nuxt starter template is enough to reproduce the issue. You just need to open it in Chrome 65
Describe the bug
I'm using the Nuxt starter template. When I run yarn build and then preview in Chrome 65 browser. I get an error in the browser console:
entry.J2zEOy1-.js:13 Uncaught SyntaxError: Unexpected token ?
In order to solve this problem, I use the Vite settings in nuxt.config
After restarting yarn build, I get the following error
I tried using the plugin
@vitejs/plugin-legacy
and evennuxt-vite-legacy
and separately connect the polyfile for globalThis, but it does not bring any effect, despite the fact that the final Html contains scripts with polyfile and legacy codeand there is an error in the console
Additional context
No response
Logs
entry-legacy.rwZSLLd-.js:1 Uncaught ReferenceError: System is not defined at entry-legacy.rwZSLLd-.js:1 (anonymous) @ entry-legacy.rwZSLLd-.js:1 entry.VwnH7qei.js:17 Uncaught ReferenceError: globalThis is not defined at entry.VwnH7qei.js:17 (anonymous) @ entry.VwnH7qei.js:17 The error refers to this code globalThis.__buildAssetsURL=Gt,globalThis.__publicAssetsURL=m1;
The text was updated successfully, but these errors were encountered: