Skip to content

Commit b459ecc

Browse files
committed
Update readme.md with run instructions
1 parent 105eeb7 commit b459ecc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
Reproduction of an issue in the (quite excellent) [rules_js](https://github.com/aspect-build/rules_js) where bundlers inside `js_run_devserver` can see two separate node_modules trees.
1+
Reproduction of an issue in the (quite excellent) [rules_js](https://github.com/aspect-build/rules_js) where bundlers inside `js_run_devserver` can see two separate node_modules trees.
2+
3+
## To reproduce the issue
4+
5+
```
6+
bazel run packages/app:serve
7+
```
8+
9+
You'll see two browser windows pop open:
10+
11+
1. `http://localhost:8080` which has a broken page with errors in the console talking about how multiple copies of React have been loaded onto the page (React hooks error)
12+
2. `http://127.0.0.1:8888` which serves [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer) showing the two separate copies of React files that have been loaded onto the page.
13+

0 commit comments

Comments
 (0)