-
Notifications
You must be signed in to change notification settings - Fork 944
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
@turf/helpers version 7.0.0 - Cannot find module 'geojson' or its corresponding type declarations. #2617
Comments
Looking inside Workaround: I can overcome this when installing all of turf using |
That's no good. Will take a look at this as a priority @BenJackGill. Thanks for letting us know. |
@BenJackGill could you please share a bit more about your dev process and deployment environment? Would like to reproduce this locally so I can confirm any change fixes it. |
I have a monorepo. Internal packages of the monorepo are just-in-time packages that directly export TypeScript. And then I also have apps which consume those internal packages. I have Turf installed in both the internal packages and the apps. The app that is throwing the error is for Firebase Functions, which uses an internal package that has Turf installed inside it. It's late here but I will try to get a minimal reproduction up for you later if that would help. |
Here is the monorepo reproduction: https://stackblitz.com/edit/vitejs-vite-pbqflx?file=apps%2Ffunctions-admin%2Fpackage.json The monorepo has a I receive the error during deployment of the Firebase Functions. Thanks for looking into this, if there's anything else I can I provide that would help please let me know. |
I think I'm seeing a similar problem with |
Thanks @joekrill. Can you please attach some screenshots (presumably of your editor?) showing the incorrect and correct typings you are seeing? We're after as many examples as possible so we can narrow down the difference between packages that work right and those that don't. |
@smallsaucepan sure! Just in case it's relevant, I'm using a Yarn 4.3.1 Plug'n'Play in my particular project. Here's what I'm seeing when I hover over The Here's he The
If it helps, I looked at every export from
And the following are problematic in that they all have
I went through them pretty quickly so hopefully this is accurate. Let me know if there are specific exports you want to see, or anything else I can provide. |
Using
@turf/helpers
version 7.0.0 and I am seeing this TypeScript error during deployment:The text was updated successfully, but these errors were encountered: