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

boilerplates-monorepo example fails to start #510

Open
ktor opened this issue Nov 4, 2022 · 0 comments
Open

boilerplates-monorepo example fails to start #510

ktor opened this issue Nov 4, 2022 · 0 comments

Comments

@ktor
Copy link

ktor commented Nov 4, 2022

I have followed instructions from https://react-union.org/boilerplates-monorepo.

yarn v1.22.18
nodejs v16.17.1

└🐚 node16➤ yarn && yarn start
yarn install v1.22.18
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning react-union-scripts > webpack-dev-middleware > webpack-log > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning react-union-scripts > webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning react-union-scripts > webpack > watchpack > watchpack-chokidar2 > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning react-union-scripts > webpack > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning react-union-scripts > resolve-url-loader > rework > css > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning react-union-scripts > babel-jest > @jest/transform > jest-haste-map > [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning react-union-scripts > resolve-url-loader > rework > css > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning react-union-scripts > webpack > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning react-union-scripts > webpack > node-libs-browser > url > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning react-union-scripts > webpack > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning react-union-scripts > webpack > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning react-union-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
warning workspace-aggregator-a2241698-eb4e-4043-83e5-04e73463471e > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning workspace-aggregator-a2241698-eb4e-4043-83e5-04e73463471e > @union-monorepo/app-sample > @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
warning workspace-aggregator-a2241698-eb4e-4043-83e5-04e73463471e > @union-monorepo/app-sample > @babel/polyfill > [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "core-js@^3.0.0".
warning "babel-preset-react-union > [email protected]" has unmet peer dependency "webpack@^4.4.0".
warning " > [email protected]" has unmet peer dependency "react@^16.0.0-0".
warning " > [email protected]" has unmet peer dependency "react-dom@^16.0.0-0".
warning "enzyme-adapter-react-16 > [email protected]" has unmet peer dependency "react@^16.14.0".
warning "enzyme-adapter-react-16 > [email protected]" has unmet peer dependency "[email protected] || 0.14.x || ^15.0.0-0 || ^16.0.0-0".
warning "enzyme-adapter-react-16 > enzyme-adapter-utils > [email protected]" has unmet peer dependency "react@^0.14 || ^15.0.0 || ^16.0.0-alpha".
warning " > [email protected]" has incorrect peer dependency "eslint@^5.12.1".
warning "react-union-scripts > [email protected]" has unmet peer dependency "react@^16.8.3".
warning "react-union-scripts > [email protected]" has unmet peer dependency "react-dom@^16.8.3".
warning "react-union-scripts > [email protected]" has unmet peer dependency "react-union@^0.17.0".
warning "react-union-scripts > [email protected]" has unmet peer dependency "react@^15.0.0 || ^16.0.0 || ^17.0.0 ".
warning "react-union-scripts > [email protected]" has unmet peer dependency "react-dom@^15.0.0 || ^16.0.0 || ^17.0.0 ".
warning "react-union-scripts > [email protected]" has unmet peer dependency "react@^16.3.0 || ^17.0.0".
warning "react-union-scripts > react-union-rendering-service > [email protected]" has unmet peer dependency "react@*".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 39.06s.
yarn run v1.22.18
$ react-union-scripts start --app app-sample
[13:08:23] Starting 'start'...
Optimizing for development mode.
[13:08:25] Starting 'startDevServer'...
[13:08:25] Finished 'startDevServer' after 204 ms
[13:08:25] Finished 'start' after 1941 ms
[Browsersync] Access URLs:
 -------------------------------
    Local: http://localhost:3301
 External: http://10.0.4.74:3301
 -------------------------------
[Browsersync] Serving files from: /home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/packages/app-sample/public

  `@babel/polyfill` is deprecated. Please, use required parts of `core-js`
  and `regenerator-runtime/runtime` separately
ℹ 「wdm」: wait until bundle finished: /
webpack built client 7c10de9484c835fd41a3 in 5119ms
✖ 「wdm」: Time: 5119ms
Built at: 04/11/2022 13:08:30
                      Asset       Size   Chunks                    Chunk Names
         assetManifest.json  211 bytes           [emitted]
                 index.html  892 bytes           [emitted]
  static/css/main.chunk.css   92 bytes     main  [emitted]         main
    static/js/main.chunk.js   18.3 KiB     main  [emitted]         main
static/js/runtime.bundle.js   33.4 KiB  runtime  [emitted]         runtime
  static/js/vendor.chunk.js   5.93 MiB   vendor  [emitted]  [big]  vendor
Entrypoint main [big] = static/js/runtime.bundle.js static/js/vendor.chunk.js static/css/main.chunk.css static/js/main.chunk.js
[0] multi ../packages/app-sample/src/index ../node_modules/webpack-hot-middleware/client.js 40 bytes {main} [built]
[../node_modules/@babel/polyfill/lib/index.js] 686 bytes {vendor} [built]
[../node_modules/@babel/polyfill/lib/noConflict.js] 567 bytes {vendor} [built]
[../node_modules/@babel/runtime/helpers/defineProperty.js] 365 bytes {vendor} [built]
[../node_modules/@babel/runtime/helpers/extends.js] 601 bytes {vendor} [built]
[../node_modules/@babel/runtime/helpers/inheritsLoose.js] 358 bytes {vendor} [built]
[../node_modules/react-union/es/react-union.js] 17.3 KiB {vendor} [built]
[../node_modules/react/index.js] 190 bytes {vendor} [built]
[../node_modules/strip-ansi/index.js] 154 bytes {vendor} [built]
[../node_modules/webpack-hot-middleware/client-overlay.js] 2.14 KiB {vendor} [built]
[../node_modules/webpack-hot-middleware/client.js] 7.67 KiB {vendor} [built]
[../node_modules/webpack-hot-middleware/process-update.js] 4.36 KiB {vendor} [built]
[../node_modules/webpack/buildin/module.js] 497 bytes {vendor} [built]
[../packages/app-sample/src/components/Root/index.js] 33 bytes {main} [built]
[../packages/app-sample/src/index.js] 191 bytes {main} [built]
    + 857 hidden modules

ERROR in ../packages/app-sample/src/routes.js
Module build failed (from ../node_modules/babel-loader/lib/index.js):
TypeError: /home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/packages/app-sample/src/routes.js: Property value expected type of string but got undefined
    at Object.validate (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/types/lib/definitions/utils.js:159:13)
    at validateField (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/types/lib/validators/validate.js:24:9)
    at validate (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/types/lib/validators/validate.js:17:3)
    at validateNode (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/types/lib/builders/validateNode.js:16:27)
    at Object.stringLiteral (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/types/lib/builders/generated/index.js:457:36)
    at idOption (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/babel-plugin-universal-import/index.js:134:49)
    at PluginPass.Import (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/babel-plugin-universal-import/index.js:241:13)
    at newFn (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/visitors.js:159:21)
    at NodePath._call (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:46:20)
    at NodePath.call (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:36:17)
    at NodePath.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:84:31)
    at TraversalContext.visitQueue (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitSingle (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:72:19)
    at TraversalContext.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:121:19)
    at traverseNode (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitMultiple (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:67:17)
    at TraversalContext.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:119:19)
    at traverseNode (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitSingle (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:72:19)
    at TraversalContext.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:121:19)
    at traverseNode (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitMultiple (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:67:17)
    at TraversalContext.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:119:19)
    at traverseNode (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitMultiple (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:67:17)
    at TraversalContext.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:119:19)
    at traverseNode (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitSingle (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:72:19)
    at TraversalContext.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:121:19)
    at traverseNode (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitMultiple (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:67:17)
    at TraversalContext.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:119:19)
    at traverseNode (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitSingle (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:72:19)
    at TraversalContext.visit (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/context.js:121:19)
    at traverseNode (/home/ktor/development/projects/github/react-union/boilerplates/react-union-boilerplate-monorepo/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
 @ ../packages/app-sample/src/components/Root/Root.js 5:0-34 9:12-18
 @ ../packages/app-sample/src/components/Root/index.js
 @ ../packages/app-sample/src/index.js
 @ multi ../packages/app-sample/src/index ../node_modules/webpack-hot-middleware/client.js
Child HtmlWebpackCompiler:
     1 asset
    Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
    [../node_modules/html-webpack-plugin/lib/loader.js!../packages/app-sample/public/index.ejs] 1.05 KiB {HtmlWebpackPlugin_0} [built]
Child extract-css-chunks-webpack-plugin ../node_modules/css-loader/dist/cjs.js??ref--5-1!../packages/app-sample/src/components/Root/Root.css:
    Entrypoint extract-css-chunks-webpack-plugin = *
    [../node_modules/css-loader/dist/cjs.js?!../packages/app-sample/src/components/Root/Root.css] ../node_modules/css-loader/dist/cjs.js??ref--5-1!../packages/app-sample/src/components/Root/Root.css 344 bytes {extract-css-chunks-webpack-plugin} [built]
    [../node_modules/css-loader/dist/runtime/api.js] 2.46 KiB {extract-css-chunks-webpack-plugin} [built]
ℹ 「wdm」: Failed to compile.
@ktor ktor changed the title boilerplates-monorepo boilerplates-monorepo example fails to start Nov 4, 2022
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

1 participant