Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

尝试升级 2.0 遇到报错 ReferenceError: self is not defined #23

Closed
arvinxx opened this issue Mar 24, 2021 · 3 comments
Closed

尝试升级 2.0 遇到报错 ReferenceError: self is not defined #23

arvinxx opened this issue Mar 24, 2021 · 3 comments

Comments

@arvinxx
Copy link

arvinxx commented Mar 24, 2021

image

RT,仓库地址:https://github.com/arvinxx/umi-electron-template/tree/package/umi-plugin-electron-builder_v2

@BySlin
Copy link
Owner

BySlin commented Mar 27, 2021

esbuild和typeorm不兼容 evanw/esbuild#257
现在2.0同时支持webpack和vite,在配置参数中切换,默认为webpack构建,vite构建速度更快但兼容性有点问题

@BySlin BySlin closed this as completed Apr 12, 2021
@geekftz
Copy link

geekftz commented Sep 20, 2022

how it fixed?

@BySlin
Copy link
Owner

BySlin commented Sep 20, 2022

how it fixed?

buildType 设置为 webpack即可,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants