Replies: 1 comment
-
The problem is: the location (and content!) of the generated JS files depends on your ReScript (bsconfig.json) configuration, so we can't really provide a solid way for this kind of problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The problem
I was trying to build my Expo app which uses this package, and I was running into problems that weren't immediately obvious. After some sleuthing I eventually found this line in the Xcode error log.
What I eventually realized is that this package ships only with the
*.res
files, and you're expected to build the*.bs.js
files yourself. Conversely, EAS installs yournode_modules
fresh after upload during the build process, so none of those files get compiled on the EAS server.Considered solution
I was able to fix it by adding the following to my
package.json
:This tells the EAS build system to build the rescript files after it runs
yarn install
(andpod install
for iOS specifically).I think the most straight forward solution is to just add this to the docs and on the website. Just save some people the headache of running into this problem and not being sure how to solve it.
Alternatives solutions
I guess the package could bundle
*.bs.js
files, but I don't know if that's even the right solution. I think a line in the docs is probably sufficient.Beta Was this translation helpful? Give feedback.
All reactions