Open alchemistgo87 opened 3 years ago
To fix this, pin parcel to 1.12.3
in the example's package.json:
"parcel": "1.12.3",
super annoying issue
Thank you for the help @emckay. It worked. But now the browser is showing blank page and in the console getting this error:
Uncaught TypeError: Class constructor QueryBuilder cannot be invoked without 'new'
at new UserModelSelector (UserModel.base.ts:29)
at selectFromUser (UserModel.base.ts:35)
at Object.parcelRequire.../src/app/models/UserModel.base.ts.mobx-state-tree (UserModel.base.ts:38)
at newRequire (app.d221c077.js:47)
at localRequire (app.d221c077.js:53)
at Object.parcelRequire.../src/app/models/UserModel.ts../UserModel.base (UserModel.ts:2)
at newRequire (app.d221c077.js:47)
at localRequire (app.d221c077.js:53)
at Object.parcelRequire.../src/app/models/RootStore.base.ts.mobx-state-tree (RootStore.base.ts:8)
at newRequire (app.d221c077.js:47)
I fixed that one by changing the target from es5
to es6
in the example's tsconfig.json.
To fix the next error you will run into, run yarn add mobx mobx-state-tree mobx-react react react-dom mst-gql graphql-request
in the example directory.
I ran into all these issues yesterday -- good luck!
That's correct, it worked after following the above 2 steps. Thank you so much @emckay.
Hi @alchemistgo87 Im trying to help @jesse-savary organize all the open issues... are you still having problems with this issue? looks like it was solved?
Getting this error when running the provided twitter-clone example:
node: 14.16.0 yarn: 1.22.10 OS: MacOS Big Sur 11.2.2
Instructions followed: https://github.com/mobxjs/mst-gql/blob/main/examples/3-twitter-clone/README.md