We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
$ umi g page index $ vi pages/index.tsx
加入以下内容,
import { makeObservable, observable } from 'mobx'; class A { @observable loading = '1'; constructor() { makeObservable(this); } } class B extends A { loading = '2'; } const b = new B(); console.log(b);
启动 umi dev,
$ umi dev
报错,
The text was updated successfully, but these errors were encountered:
解法:
新增 plugin.ts,内容如下,
export default (api: any) => { api.modifyBabelPresetOpts((memo) => { memo.presetEnv.loose = true; return memo; }) }
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What happens?
Mini Showcase Repository(REQUIRED)
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
加入以下内容,
启动 umi dev,
报错,
Context
The text was updated successfully, but these errors were encountered: