Hello, I’m trying to setup a lightningjs project in a mono repo setup with yarn, and when I run lng build it finishes without errors but then on the build folder both ‘lib’ and ‘polyfills’ are empty, and when running the app it doesn’t work since its missing the ‘lib/lightning.js’.
I’ve tried in a separate test folder and there it copies files to these libraries, but I can’t see the difference between these projects.
Anyone knows some idea to try?
So was able to come with a solution, it was related with yarn workspaces, it supports different “hoistingLimits”, we were using “dependencies” which only hoisted the direct dependencies, but no sub-dependencies, changing it to “workspaces” fixed the problem.
1 Like