Here browser package is an npm library dejavu-data-browser which is used as a dependency inside dejavu-main package. The build command from root to deploy an app is yarn build:dejavu:app. This command works perfectly on local, but failing on netlify.
Netlify config:
Build failing, since it's not able to resolve dependency of npm library dejavu-data-browser:
About me
My question in a little more detail
My project skeleton is like this
Here
browser
package is an npm librarydejavu-data-browser
which is used as a dependency insidedejavu-main
package. The build command fromroot
to deploy an app isyarn build:dejavu:app
. This command works perfectly on local, but failing on netlify.Netlify config:
Build failing, since it's not able to resolve dependency of npm library
dejavu-data-browser
:Additional comments for Netlify
GitHub link: https://github.com/ShahAnuj2610/dejavu/tree/feat/browser-package