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

scope @worldsibu/convector-example-dsc-ui fails to start because of Mobx #16

Open
pdeoliveira opened this issue Dec 5, 2019 · 0 comments

Comments

@pdeoliveira
Copy link

$ npx lerna run start --scope @worldsibu/convector-example-dsc-ui --stream
lerna info version 2.11.0
lerna info scope @worldsibu/convector-example-dsc-ui
@worldsibu/convector-example-dsc-ui: > @worldsibu/convector-example-dsc-ui@0.0.0 start /Users/pedro.c.oliveira/Code/DeliveryStories/convector-example-drug-supply-chain/@worldsibu/ui
@worldsibu/convector-example-dsc-ui: > ng serve
@worldsibu/convector-example-dsc-ui: ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
@worldsibu/convector-example-dsc-ui: Date: 2019-12-05T19:23:43.867Z
@worldsibu/convector-example-dsc-ui: Hash: cb738a36e1c153857fff
@worldsibu/convector-example-dsc-ui: Time: 5013ms
@worldsibu/convector-example-dsc-ui: chunk {main} main.js, main.js.map (main) 2.04 kB [initial] [rendered]
@worldsibu/convector-example-dsc-ui: chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 113 kB [initial] [rendered]
@worldsibu/convector-example-dsc-ui: chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
@worldsibu/convector-example-dsc-ui: chunk {styles} styles.js, styles.js.map (styles) 38.3 kB [initial] [rendered]
@worldsibu/convector-example-dsc-ui: chunk {vendor} vendor.js, vendor.js.map (vendor) 331 kB [initial] [rendered]
@worldsibu/convector-example-dsc-ui: ERROR in ../../node_modules/mobx/lib/api/flow.d.ts(8,83): error TS2315: Type 'Generator' is not generic.
@worldsibu/convector-example-dsc-ui: ../../node_modules/mobx/lib/api/flow.d.ts(8,108): error TS2304: Cannot find name 'AsyncGenerator'.
@worldsibu/convector-example-dsc-ui: ℹ 「wdm」: Failed to compile.


That happens because Mobx observable is not working in release build. Check this reference:
mobxjs/mobx#2193

Temp. fix is to use mobx version 5.14.2 in <your_folder>/convector-example-drug-supply-chain/@worldsibu/ui/package.json:
"mobx": "5.14.2",

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