I’m trying to get an app in my monorepo to deploy, and it’s not working. I’m following the directions in Build from a subdirectory or monorepo | Netlify Docs, which I saw in an email I received yesterday (“Monorepo support” in the subject line).
When I do it the recommended way (path to package – packages/chess-game – as base directory), I get this error in the deploy log: “Cannot find module: ‘components’. Make sure this package is installed.” Components is a sibling to my app in the monorepo’s packages directory. Doing the build the same way locally on my machine works fine.
When I use the root as the base directory, and use “cd packages/chess-game && yarn build” as the build command, I get the same results.
When I use the root as the base directory, and use “cd packages/chess-game && yarn add components && yarn build” then I don’t get the error, but when I load the app, I get a blank page.
My repo on github is here: GitHub - colindavey/chess-monorepo.