-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hi, I'm using zodern:types
on a Meteor 2.13.3 project. Generally it's working fine, but for whatever reason I cannot get it to pick up the react-meteor-data types, nor do I really understand the error it's giving me. The code itself runs, but the type error is persistent and I don't get type info in my IDE (VSCode).
The error is pretty basic:
File '/Users/andrew/dev/meteor/textuality/textuality-admin/.meteor/local/types/packages.d.ts' is not a module.
(which is confusing because that file does exist, and every other meteor import seems to be working ok like import { Meteor } from 'meteor/meteor'
or import { Mongo } from 'meteor/mongo'
)
I'm on the latest of this package (1.0.10
) and of react-meteor-data (2.7.2
)
In TSConfig I've got:
"paths": {
/* Support absolute /imports/* with a leading '/' */
"/*": ["*"],
/* Pull in type declarations for Meteor packages from either zodern:types or @types/meteor packages */
"meteor/*": [
"node_modules/@types/meteor/*",
".meteor/local/types/packages.d.ts"
]
},
as specified by the readme. I do not have @types/meteor
installed as a package as per the 2.8.1 migration steps and the meteor create --typescript
skeleton, so the line in referencing it in the tsconfig confuses me a bit, but removing it does nothing to change the issue so I'm probably barking up the wrong tree there.
Any suggestions?