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

es5ImcompatibleVersions exports is not defined #499

Closed
xiaohuoni opened this issue May 18, 2018 · 3 comments
Closed

es5ImcompatibleVersions exports is not defined #499

xiaohuoni opened this issue May 18, 2018 · 3 comments

Comments

@xiaohuoni
Copy link
Member

xiaohuoni commented May 18, 2018

umi-antd-admin 这个项目不能提交iss
执行build错误

F:\umi-antd-admin>npm run build

> antd-admin@4.3.9 build F:\umi-antd-admin
> cross-env BABELRC=1 umi build

⚠️ ⚠️ ⚠️  It\'s not recommended to use webpack.config.js, since it\'s major or minor version upgrades may result in incompatibi
lity. If you insist on doing so, please be careful of the compatibility after upgrading.

  build [==================  ] 91%Total precache size is about 13.3 MB for 42 resources.
Build completed in 93.249s

Failed to compile.

Failed to minify the bundle. Error: umi.e5739661.js from UglifyJs
Invalid assignment [umi.e5739661.js:30361,30]
    at doneHandler (F:\umi-antd-admin\node_modules\af-webpack\lib\build.js:91:27)
@xiaohuoni xiaohuoni changed the title umi-antd-admin 这个项目为什么不能提交iss umi-antd-admin run build Error May 18, 2018
@xiaohuoni
Copy link
Member Author

sorrycc/blog#68

@xiaohuoni
Copy link
Member Author

webpackrc.js

es5ImcompatibleVersions: true,

build 成功,在浏览器中打开

Uncaught ReferenceError: exports is not defined

@xiaohuoni xiaohuoni reopened this May 18, 2018
@sorrycc sorrycc changed the title umi-antd-admin run build Error es5ImcompatibleVersions exports is not defined May 18, 2018
@sorrycc
Copy link
Member

sorrycc commented May 18, 2018

是有这个问题,node_modules 编译给的 babel 配置需要和项目文件的不同,还没抽出时间来看。

sorrycc pushed a commit that referenced this issue Jun 23, 2022
* feat(core): pluginAPI registerPresets plugin type correction

* fix(preset-umi): dev data.changes ConfigChangeType specify error

* feat(preset-umi): tmpFiles exports plugins types.d.ts remove suffix

* feat(preset-umi): tmpFiles generate configTypes

Co-authored-by: xierenhong <[email protected]>
xierenyuan added a commit to xierenyuan/umi that referenced this issue Jun 23, 2022
* feat(core): pluginAPI registerPresets plugin type correction

* fix(preset-umi): dev data.changes ConfigChangeType specify error

* feat(preset-umi): tmpFiles exports plugins types.d.ts remove suffix

* feat(preset-umi): tmpFiles generate configTypes

Co-authored-by: xierenhong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants