Closed meilihao closed 5 years ago
@meilihao, thanks for reporting this. Apologies for the slow response!
I'm not able to reproduce this on a fresh checkout of the repo (the output is at the end of this comment).
I noticed there's an interesting warning at the top of the output you included:
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
Do you know which file that's referring to? There isn't a package-lock.json file in the repo.
Also, in your installation (node_modules) is the file where the error occurs (node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js
) the same as what I've inlined below?
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const WebWorkerMainTemplatePlugin = require("./WebWorkerMainTemplatePlugin");
const WebWorkerChunkTemplatePlugin = require("./WebWorkerChunkTemplatePlugin");
const WebWorkerHotUpdateChunkTemplatePlugin = require("./WebWorkerHotUpdateChunkTemplatePlugin");
class WebWorkerTemplatePlugin {
apply(compiler) {
compiler.plugin("this-compilation", compilation => {
compilation.mainTemplate.apply(new WebWorkerMainTemplatePlugin());
compilation.chunkTemplate.apply(new WebWorkerChunkTemplatePlugin());
compilation.hotUpdateChunkTemplate.apply(new WebWorkerHotUpdateChunkTemplatePlugin());
});
}
}
module.exports = WebWorkerTemplatePlugin;
$ git rev-parse --short HEAD
d148dc5
$ node -v
v6.14.3
$ yarn -v
1.9.4
$ yarn
yarn install v1.9.4
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > eslint-config-airbnb@15.1.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
warning " > eslint-config-react-app@2.0.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
warning " > glow@1.2.2" has incorrect peer dependency "flow-bin@^0.63.1".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > @jaegertracing/plexus@0.0.1-dev.3" has unmet peer dependency "react@16.x".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-dimensions@1.3.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-dimensions@1.3.0" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-router-dom@4.1.2" has incorrect peer dependency "react@^15".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-router-redux@5.0.0-alpha.6" has incorrect peer dependency "react@^15".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-vis@1.7.2" has incorrect peer dependency "react@0.14.x - 15.x".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-vis-force@0.3.1" has incorrect peer dependency "react@0.14.x - 15.x".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-vis-force@0.3.1" has incorrect peer dependency "react-dom@0.14.x - 15.x".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > recompose@0.25.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-test-renderer@15.6.1" has incorrect peer dependency "react@^15.6.1".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > @jaegertracing/plexus > worker-loader@1.1.1" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > antd > rc-editor-mention@1.1.1" has unmet peer dependency "immutable@~3.7.4".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-router-dom > react-router@4.1.2" has incorrect peer dependency "react@^15".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > react-app-rewire-less > less-loader@4.0.5" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > @jaegertracing/plexus > nwb > babel-plugin-inferno@3.3.1" has unmet peer dependency "inferno@3.x".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > @jaegertracing/plexus > worker-loader > schema-utils@0.4.5" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning "workspace-aggregator-f8dab16b-67ea-466b-a7c9-58752dda72da > jaeger-ui > antd > react-slick > slick-carousel@1.8.1" has unmet peer dependency "jquery@>=1.8.0".
[4/4] 📃 Building fresh packages...
$ lerna run --stream --sort prepublishOnly
lerna info version 2.10.2
lerna info versioning independent
@jaegertracing/plexus: yarn run v1.9.4
@jaegertracing/plexus: $ nwb build-react-component --no-demo
@jaegertracing/plexus: ✔ Creating ES5 build
@jaegertracing/plexus: ✔ Creating UMD builds
@jaegertracing/plexus: File sizes after gzip:
@jaegertracing/plexus: umd/@jaegertracing/plexus.js 623.27 KB
@jaegertracing/plexus: umd/@jaegertracing/plexus.min.js 583.36 KB
@jaegertracing/plexus: Done in 59.64s.
lerna success run Ran npm script 'prepublishOnly' in packages:
lerna success - @jaegertracing/plexus
✨ Done in 108.89s.
after rm package-lock.json && git checkout . && rm -rf node_modules
, yarn works. But yarn build
can't generate dist.
chen@chen-pc:~/git/go/src/github.com/jaegertracing/jaeger-ui$ yarn install
yarn install
yarn install v1.9.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.1.2: The platform "linux" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > eslint-config-airbnb@15.1.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
warning " > eslint-config-react-app@2.0.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
warning " > glow@1.2.2" has incorrect peer dependency "flow-bin@^0.63.1".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > @jaegertracing/plexus@0.0.1-dev.3" has unmet peer dependency "react@16.x".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-dimensions@1.3.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-dimensions@1.3.0" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-router-dom@4.1.2" has incorrect peer dependency "react@^15".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-router-redux@5.0.0-alpha.6" has incorrect peer dependency "react@^15".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-vis@1.7.2" has incorrect peer dependency "react@0.14.x - 15.x".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-vis-force@0.3.1" has incorrect peer dependency "react@0.14.x - 15.x".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-vis-force@0.3.1" has incorrect peer dependency "react-dom@0.14.x - 15.x".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > recompose@0.25.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-test-renderer@15.6.1" has incorrect peer dependency "react@^15.6.1".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > @jaegertracing/plexus > worker-loader@1.1.1" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > antd > rc-editor-mention@1.1.1" has unmet peer dependency "immutable@~3.7.4".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-router-dom > react-router@4.1.2" has incorrect peer dependency "react@^15".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > react-app-rewire-less > less-loader@4.0.5" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > @jaegertracing/plexus > nwb > babel-plugin-inferno@3.3.1" has unmet peer dependency "inferno@3.x".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > @jaegertracing/plexus > worker-loader > schema-utils@0.4.5" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning "workspace-aggregator-cfe728b6-ecc3-4d67-8793-55fe366cabdb > jaeger-ui > antd > react-slick > slick-carousel@1.8.1" has unmet peer dependency "jquery@>=1.8.0".
[4/4] Building fresh packages...
$ lerna run --stream --sort prepublishOnly
lerna info version 2.10.2
lerna info versioning independent
@jaegertracing/plexus: yarn run v1.9.4
@jaegertracing/plexus: $ nwb build-react-component --no-demo
@jaegertracing/plexus: ✔ Cleaning module
@jaegertracing/plexus: ✔ Creating ES5 build
@jaegertracing/plexus: ✔ Creating UMD builds
@jaegertracing/plexus: File sizes after gzip:
@jaegertracing/plexus: umd/@jaegertracing/plexus.js 623.27 KB
@jaegertracing/plexus: umd/@jaegertracing/plexus.min.js 583.36 KB
@jaegertracing/plexus: Done in 60.30s.
lerna success run Ran npm script 'prepublishOnly' in packages:
lerna success - @jaegertracing/plexus
Done in 104.42s.
chen@chen-pc:~/git/go/src/github.com/jaegertracing/jaeger-ui$ yarn build
yarn run v1.9.4
$ lerna run build
lerna info version 2.10.2
lerna info versioning independent
$ nwb build-react-component
File sizes after gzip:
umd/@jaegertracing/plexus.js 623.27 KB
umd/@jaegertracing/plexus.min.js 583.36 KB
File sizes after gzip:
demo/dist/demo.48a57601.js 625.18 KB
demo/dist/plexus.32872e69.css 558 B
$ REACT_APP_VSN_STATE=$(../../scripts/get-tracking-version.js) react-app-rewired build
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
1.18 MB build/static/js/main.d1214a14.js
40.59 KB build/static/css/main.8cb90840.css
The bundle size is significantly larger than recommended.
Consider reducing it with code splitting: https://goo.gl/9VhYWB
You can also analyze the project dependencies: https://goo.gl/LeUzfb
The project was built assuming it is hosted at ./.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
Find out more about deployment here:
http://bit.ly/2vY88Kr
lerna success run Ran npm script 'build' in packages:
lerna success - jaeger-ui
lerna success - @jaegertracing/plexus
Done in 156.96s.
chen@chen-pc:~/git/go/src/github.com/jaegertracing/jaeger-ui$ tree build
build
0 directories, 0 files
@meilihao You can read the README and find that the output is in packages/jaeger-ui/build
instead of build
.
env
os: deepin 15.7 node: v6.14.4 jaeger-ui: git@d148dc5
log
I also used other versions of the node: v8.11.4/v10.10.0, got the similar error.