We have a project configured as a monorepo with Lerna. We have many packages in this monorepo, two of them correspond to a Forge app and a Custom UI app. There are other packages, many of them share the same dependencies (testing, typescript, babel, etc), and some others are symlinked as internal dependencies that are consumed by other packages, one of them being the custom ui app.
With this configuration Forge deploy works fine, but Forge tunnel fails finding the bundles for the Custom ui app:
We have also tried keeping the Forge app and the Custom UI app within the same package, but the typescript and babel configurations we use for the Custom UI were messing up the Forge app, so we split them in two packages for this reason.
Using forge deploy is slowing down our team, we’d love to be able to use forge tunnel instead.
I have set up a public repo with the basic configuration where we can see this issue: https://bitbucket.org/naiara_comalatech/forge-with-custom-ui-in-lerna-monorepo/src/main/
to reproduce the issue follow these steps:
yarn install --ignore-engines npx lerna bootstrap cd packages/customui yarn build cd ../forge forge deploy forge install (choose a confluence instance where to install the app) forge tunnel
Is there any workaround that could potentially work with this setup?
Thanks in advance.