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

docker build 报错 #65

Open
LittleSecretary opened this issue Dec 23, 2020 · 2 comments
Open

docker build 报错 #65

LittleSecretary opened this issue Dec 23, 2020 · 2 comments

Comments

@LittleSecretary
Copy link

image
打包镜像报错

@LittleSecretary
Copy link
Author

[error] .//react/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./cjs/react.production.min.js in E:\yapi2\vendors\node_modules\react
@ ./
/react/index.js 4:19-59

[error] .//react-dom/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./cjs/react-dom.production.min.js in E:\yapi2\vendors\node_modules\react-dom
@ ./
/react-dom/index.js 35:19-63

[error] .//history/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./cjs/history.min.js in E:\yapi2\vendors\node_modules\history
@ ./
/history/index.js 4:19-50

[error] ./client/styles/common.scss
Module build failed: Error: ENOENT: no such file or directory, open 'E:\yapi2\vendors\node_modules\svgo\lib\svgo/../../.svgo.yml'
at Object.openSync (fs.js:440:3)
at Object.readFileSync (fs.js:342:35)
at module.exports (E:\yapi2\vendors\node_modules\svgo\lib\svgo\config.js:31:48)
at new module.exports (E:\yapi2\vendors\node_modules\svgo\lib\svgo.js:21:19)
at E:\yapi2\vendors\node_modules\postcss-svgo\dist\index.js:95:16
at Object.creator [as postcssSvgo] (E:\yapi2\vendors\node_modules\postcss\lib\postcss.js:150:35)
at E:\yapi2\vendors\node_modules\cssnano\dist\index.js:295:40
at Array.forEach ()
at E:\yapi2\vendors\node_modules\cssnano\dist\index.js:282:29
at creator (E:\yapi2\vendors\node_modules\postcss\lib\postcss.js:150:35)
at processCss (E:\yapi2\vendors\node_modules\css-loader\lib\processCss.js:199:16)
at Object.module.exports (E:\yapi2\vendors\node_modules\css-loader\lib\loader.js:40:2)
@ ./client/index.js 7:0-31

[error] .//react-is/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./cjs/react-is.production.min.js in E:\yapi2\vendors\node_modules\react-is
@ ./
/react-is/index.js 4:19-62

@blackkeai
Copy link

我也是跟你一样,也报错了。

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

2 participants