We added some additional dependencies to the app when developing locally (via yarn add <dep>.
When deploying to heroku, it uses the frontend package.json and the deps aren't available, causing the deploy to crash:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'multer' imported from /app/index.js
2023-06-06T20:44:47.331310+00:00 app[web.1]: at new NodeError (node:internal/errors:399:5)
2023-06-06T20:44:47.331311+00:00 app[web.1]: at packageResolve (node:internal/modules/esm/resolve:889:9)
2023-06-06T20:44:47.331311+00:00 app[web.1]: at moduleResolve (node:internal/modules/esm/resolve:938:20)
@shopify/shopify-app-express version: 2.0.0
Node version: v18.16.0
Can you advise on what is the expected approach to deploy the app to heroku?
Issue summary
Hi,
We added some additional dependencies to the app when developing locally (via
yarn add <dep>
. When deploying to heroku, it uses the frontendpackage.json
and the deps aren't available, causing the deploy to crash:@shopify/shopify-app-express
version: 2.0.0Can you advise on what is the expected approach to deploy the app to heroku?
Thank you,
Andre