You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently evaluating mobx-keystone for a project. We are already using typescript 5.1.6 and the "new" decorators as well as "moduleResolution": "bundler" in tsconfig.json but this yields some issues when importing mobx-keystone. Should this work already? Or is mobx-keystone not ready for this yet?
TS7016: Could not find a declaration file for module mobx-keystone:
./node_modules/mobx-keystone/dist/mobx-keystone.esm.mjs implicitly has an any type.
There are types at ./node_modules/mobx-keystone/dist/types/index.d.ts,
but this result could not be resolved when respecting package.json exports.
The mobx-keystone library may need to update its package.json or typings.
I think "types": "./dist/types/index.d.ts" is missing in the exports tag of package.json. If I add it manually the resolve works as expected.
Thanks for solving this so quickly. 1.6.4 works for me now. It looks like the new decorators are at least considered by mobx so im looking forward to it.
Hey all!
Currently evaluating mobx-keystone for a project. We are already using typescript 5.1.6 and the "new" decorators as well as
"moduleResolution": "bundler"
in tsconfig.json but this yields some issues when importing mobx-keystone. Should this work already? Or is mobx-keystone not ready for this yet?I think
"types": "./dist/types/index.d.ts"
is missing in the exports tag of package.json. If I add it manually the resolve works as expected.The text was updated successfully, but these errors were encountered: