Can't compile due to configured warn as error config in a dependency
Resume
While trying to upgrade my react-native project from bs-platform 7.3 to 8.3, I get error compile due to bsconfig warn as error in some dependencies. And I can't find a way to "override" that config.
Demo
Here is a reproducible example (made with react-native-web for an easier installation and with one dep : @reason-react-native/safe-area-context with the error Warning number 103 (configured as error) for example).
https://github.com/Freddy03h/reason-repro-warn-error
my understanding of the issue
It can compile ReactNativeSafeAreaContext.re because of warn 103 configured as error in this dependency
"bsc-flags": ["-bs-no-version-header", "-warn-error @a"],
things I tried
In the repro demo I don't use specific config, I tried some "bsc-flags": ["-warn-error", "-A", "-w", "-A"] config in the bsconfig file of the project but without success (maybe I missed something).
the workaround
The only way I found to bypass the issue is the monkey patch the bsconfig.json file of the dependency by removing the "-warn-error @a".
Questions
I can do PR to update bs-platform to 8 and fix those warning in all dependencies.
But, if a remove the [@bs.string] in the lib, will it be a breaking change for those who use bs-platform < 8 ?
I find it weird to not be able to use a 7.3 dep in a 8.3 project because of a warning/error config … I must missing something …
Thank you.