App reviews, troubleshooting, and recommendations
Join us March 21 for an AMA on planning your 2023 marketing budget with 2H Media co-owners, Matt and Aron
I had this issue when deploying a custom node cli app to heroku. Does anyone know why dist/index.html cannot be opened?
2023-02-01T14:35:50.290925+00:00 app[web.1]: Error: ENOENT: no such file or directory, open '/app/frontend/dist/index.html' 2023-02-01T14:35:50.290925+00:00 app[web.1]: at Object.openSync (node:fs:600:3) 2023-02-01T14:35:50.290926+00:00 app[web.1]: at readFileSync (node:fs:468:35) 2023-02-01T14:35:50.290926+00:00 app[web.1]: at file:///app/web/index.js:494:13 { 2023-02-01T14:35:50.290926+00:00 app[web.1]: errno: -2, 2023-02-01T14:35:50.290927+00:00 app[web.1]: syscall: 'open', 2023-02-01T14:35:50.290927+00:00 app[web.1]: code: 'ENOENT', 2023-02-01T14:35:50.290928+00:00 app[web.1]: path: '/app/frontend/dist/index.html' 2023-02-01T14:35:50.290928+00:00 app[web.1]: }
Solved! Go to the solution
This is an accepted solution.
I finally found the solution. need to update production index path in web/index.js
const PROD_INDEX_PATH = `${process.cwd()}/frontend/dist/` to
const PROD_INDEX_PATH = `${process.cwd()}/web/frontend/dist/`
This is an accepted solution.
I finally found the solution. need to update production index path in web/index.js
const PROD_INDEX_PATH = `${process.cwd()}/frontend/dist/` to
const PROD_INDEX_PATH = `${process.cwd()}/web/frontend/dist/`
User | RANK |
---|---|
4 | |
4 | |
4 | |
3 | |
3 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023