Dude, the compiler litterly told me what I did wrong; the bsconfig.json had like “rescript-project-template” and the ReScript VSCode plugin is like “dude, remove that $schema thing, it’s not allowed”. Boom, works. I mean, I have shadowing conflicts, but whatever, it works.
… why do I even need this dang forum, ReScript is just awesome and works and tells you how to fix things if it breaks!
Note that if your package have multiple modules, you can have a look to the bsconfig “namespace” option (true or a custom string). This allows you to “open” the package and allow to safely avoid module conflict (this is what rescript-tinycolor is using).
Eg for rescript-react-native that is opened as ReactNative:
there is no RescriptReactNative module
there is no ReacNative module
you can open the package with ReactNative thanks to this bsconfig
If true the namespace will be the same as the package name.