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
B) rnmapbox should enable every typescript setting and fix all errors.
Notes / preliminary analysis
I forked the repo and added the flag and it was pretty quick to clean up all the errors.
And then... I tried to commit and found you have a generator that runs that generates your styles.
It's currently generating 12 unused Enums and types in MapboxStyles.ts.
I followed it and then decided that I should check with the team before I change the .json file that provides the styles to make sure that the fix is in the right direction.
I could also setup a build process and update the main in package.json to use the compiled files.
I realize that I am using a beta project. I feel like this should be addressed though because:
Expo 46 relies on mapbox v10+
So my choices are to use mapbox v10+ and have these errors in my repo, or to not use mapbox because v8 isn't working on expo 46 anymore.
Also, v10+ has been in beta for a long time. If it's going to stay in beta then a simple build process to fix these issues seems reasonable.
Additional links and references
No response
The text was updated successfully, but these errors were encountered:
@jrobber thanks much for the great description of the issue. You describe a concrete issue rather than arguing that in general it's a good idea to precompile ts files.
As noted on #2172, I don't mind precompiling when creating the npm package. But we don't want generated js files in git source, and also metro should keep using the ts source files react-native key in pacakges.json.
Mapbox Implementation
Mapbox
Mapbox Version
10.0.0-beta.49
Platform
iOS, Android
@rnmapbox/maps
version10.0.0-beta.11
Standalone component to reproduce
Not applicable
Observed behavior and steps to reproduce
pnpm tsc
fails in my project because I use different settings.The extra setting I use is:
Expected behavior
A) According to the Typescript gurus rnmapbox should be shipping JS files not TS files directly:
microsoft/TypeScript#47387 (comment)
exclude on my end will not fix this.
OR
B) rnmapbox should enable every typescript setting and fix all errors.
Notes / preliminary analysis
I forked the repo and added the flag and it was pretty quick to clean up all the errors.
And then... I tried to commit and found you have a generator that runs that generates your styles.
It's currently generating 12 unused Enums and types in MapboxStyles.ts.
I followed it and then decided that I should check with the team before I change the .json file that provides the styles to make sure that the fix is in the right direction.
I could also setup a build process and update the main in package.json to use the compiled files.
I realize that I am using a beta project. I feel like this should be addressed though because:
So my choices are to use mapbox v10+ and have these errors in my repo, or to not use mapbox because v8 isn't working on expo 46 anymore.
Also, v10+ has been in beta for a long time. If it's going to stay in beta then a simple build process to fix these issues seems reasonable.
Additional links and references
No response
The text was updated successfully, but these errors were encountered: