-
Notifications
You must be signed in to change notification settings - Fork 184
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
Unable to resolve module "geotiff" when importing in React native #126
Comments
Unfortunately I do not have any experience with React Native or Expo. Typically the bundlers find the library or can be tweaked to find it. |
With import * as GeoTiff from 'geotiff'; I also get this warning when compiling for Angular Universal for SSR, could be related:
|
This is due to the Can you tell me if the PR fixes the issue for you Angular build ? Note that you need to add the It may also fixes the import issue depending on the configuration of your project. |
@JoBerkner @PacoDu do you think we can close this issue now? (I'm not a React native user) |
@constantinius yes, I think the solution provided by @philip-firstorder works (did not test it though, but I know of an exact same issue with another library in React Native). I will test it today one .ore time once I am on my PC. |
This comment has been minimized.
This comment has been minimized.
I'm with the same issue with nextjs 14. I already tried the @philip-firstorder solution and it not worked =( |
I think this issue is more React Native related, but perhaps somebody knows how to solve this. I am building a React Native app using Expo and installed geotiff using:
npm install geotiff --save
However, when I try to import it in my React Native project:
import GeoTIFF from 'geotiff'
I am getting the error:
However, when trying to get it from command line it works:
Does anybody know how to resolve this? I tried the solution that was provided in #46, but it did not change anything.
#46
The text was updated successfully, but these errors were encountered: