Closed oyster0118 closed 5 months ago
Start a new pull request in StackBlitz Codeflow.
The repro given doesn't match the bug and setup you're describing. I can't replicate it locally. Can you update with a new repro link?
I'd also suggest minimizing the Vite plugins used and dependencies to narrow down what's causing it. From the error, it seems like System.register.execute
is called before System.register
is initialized by systemjs.
Hello @oyster0118. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs reproduction
will be closed if they have no activity within 3 days.
The repro given doesn't match the bug and setup you're describing. I can't replicate it locally. Can you update with a new repro link?
I'd also suggest minimizing the Vite plugins used and dependencies to narrow down what's causing it. From the error, it seems like
System.register.execute
is called beforeSystem.register
is initialized by systemjs.
I just updated the link to reproduce the issue. In addition, I have a question: can the Vue3 application built by Vite be compatible with Chrome version 39?
The error is happening because you didn't add the polyfill for Object.assign
. If you add es.object.assign
to polyfills
, the undefined is not a function
error disappears. But a different error (ReferenceError: Proxy is not defined
) would be shown.
This is because Vue 3 doesn't support Chrome 39. https://vuejs.org/about/faq.html#what-browsers-does-vue-support
Closing as it's not a bug in Vite nor plugin-legacy.
Describe the bug
vite.config.ts
Reproduction
https://stackblitz.com/edit/vitejs-vite-fdnmkt?file=vite.config.ts,package.json,index.html&terminal=dev
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations