Steps to reproduce:
- Clone this repo
- In the root directory
yarn
- In the ui folder,
yarn start
- Go to https://localhost:4000 in a browser, allow browser to navigate to that page
- Blank page, look in console to see the error
Uncaught TypeError: Cannot read property 'BClass' of undefined
If you make any of the following changes (just one is fine), the bug does not occur:
- In
api/data/domain/src/aClass.ts
comment out@Annotate(undefined)
- In
api/data/domain/index.ts
moveexport { BClass } from './src/bClass';
aboveexport { AClass } from './src/aClass';
- In
ui/src/app/index.tsx
changeimport { AClass } from "data-domain";
toimport { AClass } from "data-domain/src/aClass";
This bug did not occur in webpack 4.