Actually, I didn’t have @rescript/runtime installed. After I installed it and added to the dependencies section of lib package, the Pervasives is gone, but I’m getting this:
[1/7] 📦 Building package tree...ERROR:
We could not build package tree '@rescript/runtime', at path '/Users/Alex/Dev/psc'. Error: No such file or directory (os error 2)
FWIW @rescript/runtime doesn’t have rescript.json, only package.json.
I run rescript build from the package directory.
If I run rescript build from the root, it succeeds, but doesn’t build anything because the sources is empty.