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

bug: 手动安装 mini-css-extract-plugin,打包报错 #478

Closed
crazyair opened this issue Jan 8, 2021 · 2 comments
Closed

bug: 手动安装 mini-css-extract-plugin,打包报错 #478

crazyair opened this issue Jan 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@crazyair
Copy link
Contributor

crazyair commented Jan 8, 2021

build failed
Error: build failed
    at compiler.run (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/lib/index.js:138:27)
    at finalCallback (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/MultiCompiler.js:254:12)
    at runWithDependencies.err (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/MultiCompiler.js:277:6)
    at done (/Users/crazyair/Code/yforms/node_modules/neo-async/async.js:2931:13)
    at runCompilers (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/MultiCompiler.js:181:48)
    at err (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/MultiCompiler.js:188:7)
    at compiler.run (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/MultiCompiler.js:270:7)
    at finalCallback (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/Compiler.js:257:39)
    at hooks.done.callAsync.err (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/Compiler.js:273:13)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/crazyair/Code/yforms/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:42:1)
    at AsyncSeriesHook.lazyCompileHook (/Users/crazyair/Code/yforms/node_modules/tapable/lib/Hook.js:154:20)
    at onCompiled (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/Compiler.js:271:21)
    at hooks.afterCompile.callAsync.err (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/Compiler.js:681:15)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/crazyair/Code/yforms/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/Users/crazyair/Code/yforms/node_modules/tapable/lib/Hook.js:154:20)
    at compilation.seal.err (/Users/crazyair/Code/yforms/node_modules/@umijs/bundler-webpack/node_modules/webpack/lib/Compiler.js:678:31)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


仓库:https://github.com/crazyair/yforms

yarn 
yarn doc:build 

Versions

  • dumi:
  • node:
  • npm:
  • OS:
  • Browser:

Steps to reproduce

What is Expected?

What is actually happening?

@crazyair crazyair added the bug Something isn't working label Jan 8, 2021
@crazyair
Copy link
Contributor Author

@PeachScript

@PeachScript
Copy link
Member

试了下应该没问题了,推测是 Umi 3.4 做依赖打包解决的:sorrycc/blog#97

issue 关闭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants