lundegaard / lundegaard/react-union

boilerplates-basic example fails to start

Open
#509 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
96
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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

yarn v1.22.18
nodejs v16.17.1

```bash
└🐚 node16➤ yarn && yarn start
yarn install v1.22.18
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > babel-preset-react-union@0.20.0" has unmet peer dependency "core-js@^3.0.0".
warning "babel-preset-react-union > babel-plugin-universal-import@3.1.3" has unmet peer dependency "webpack@^4.4.0".
warning " > eslint-config-react-union@0.20.0" has incorrect peer dependency "eslint@^5.12.1".
warning " > react-union-rendering-service@0.20.0" has incorrect peer dependency "react-union@^0.17.0".
warning " > react-union-rendering-service@0.20.0" has unmet peer dependency "react-universal-component@^4.0.0".
[4/4] Building fresh packages...
Done in 14.24s.
yarn run v1.22.18
$ react-union-scripts start --app SampleApp
[13:00:17] Starting 'start'...
node:internal/modules/cjs/loader:372
throw err;
^

Error: Cannot find module '/home/ktor/development/projects/github/react-union/node_modules/react-union/lib/react-union.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:364:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:577:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:942:27)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/ktor/development/projects/github/react-union/packages/react-union-rendering-service/src/renderApplication.js:4:41)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/ktor/development/projects/github/react-union/node_modules/react-union/package.json',
requestPath: 'react-union'
}
error Command failed with exit code 1.
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using the boilerplates-basic instructions and `yarn && yarn start`. Inspect packages/react-union-rendering-service/src/renderApplication.js and the react-union package.json entry referenced by the error. Done means the boilerplates-basic example starts without the MODULE_NOT_FOUND error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, react
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.