Hello
I am getting different errors for this. When I run my container on AWS ECS , I get the following error:
timestamp,message
1717474651832,App Build And Serve Script Starting...
1717474651832,Frontend building...
1717474651832,/app
1717474651832,/app/web/frontend
1717474651833,total 56K
1717474651833,'"-rw-r--r-- 1 root root 1.4K May 21 16:00 vite.config.js"
1717474651833,'"-rw-r--r-- 1 root root 272 May 21 16:00 translation.yml"
1717474651833,'"-rw-r--r-- 1 root root 77 May 21 16:00 shopify.web.toml"
1717474651833,'"-rw-r--r-- 1 root root 1.2K May 21 16:00 package.json"
1717474651833,'"-rw-r--r-- 1 root root 309 May 21 16:00 index.jsx"
1717474651833,'"-rw-r--r-- 1 root root 1.0K May 21 16:00 index.html"
1717474651833,'"-rw-r--r-- 1 root root 224 May 21 16:00 dev_embed.js"
1717474651833,'"-rw-r--r-- 1 root root 2.1K May 21 16:00 Routes.jsx"
1717474651833,'"-rw-r--r-- 1 root root 810 May 21 16:00 README.md"
1717474651833,'"-rw-r--r-- 1 root root 1.6K May 21 16:00 App.jsx"
1717474651833,'"-rw-r--r-- 1 root root 368 May 21 16:00 .gitignore"
1717474651833,'"-rw-r--r-- 1 root root 69 May 21 16:00 .git-blame-ignore-revs"
1717474651833,drwxr-xr-x 2 root root 26 May 21 16:00 utils
1717474651833,drwxr-xr-x 2 root root 76 May 21 16:00 hooks
1717474651833,drwxr-xr-x 2 root root 112 May 21 16:00 assets
1717474651833,drwxr-xr-x 2 root root 51 May 21 16:00 locales
1717474651833,'"-rw-r--r-- 1 root root 2.7K Jun 4 04:09 index.css"
1717474651833,drwxr-xr-x 2 root root 162 Jun 4 04:10 pages
1717474651833,drwxr-xr-x 6 root root 138 Jun 4 04:10 components
1717474651833,drwxr-xr-x 4 root root 178 Jun 4 04:10 ..
1717474651833,drwxr-xr-x 8 root root 4.0K Jun 4 04:10 .
1717474652444,> shopify-frontend-template-react@1.0.0 build
1717474652444,> vite build
1717474652458,sh: vite: not found
1717474652469,npm error Lifecycle script `build` failed with error:
1717474652470,npm error code 127
1717474652470,npm error path /app/web/frontend
1717474652470,npm error workspace shopify-frontend-template-react@1.0.0
1717474652470,npm error location /app/web/frontend
1717474652470,npm error command failed
1717474652470,npm error command sh -c vite build
1717474652483,Frontend Build Complete.
1717474652483,Backend Preparing to Serve Requests...
1717474652483,/app/web
1717474652484,total 36K
1717474652484,'"-rw-r--r-- 1 root root 52 May 21 16:00 shopify.web.toml"
1717474652484,'"-rw-r--r-- 1 root root 2.0K May 21 16:00 product-creator.js"
1717474652484,'"-rw-r--r-- 1 root root 2.4K May 21 16:00 privacy.js"
1717474652484,'"-rw-r--r-- 1 root root 789 May 24 02:01 package.json"
1717474652484,'"-rw-r--r-- 1 root root 1.5K Jun 4 04:09 shopify.js"
1717474652484,'"-rw-r--r-- 1 root root 4.5K Jun 4 04:09 index.js"
1717474652484,'"-rw-r--r-- 1 root root 2.5K Jun 4 04:09 database.sql"
1717474652484,drwxr-xr-x 2 root root 189 Jun 4 04:10 routes
1717474652484,drwxr-xr-x 8 root root 4.0K Jun 4 04:10 frontend
1717474652484,drwxr-xr-x 1 root root 36 Jun 4 04:10 ..
1717474652484,drwxr-xr-x 4 root root 178 Jun 4 04:10 .
1717474653115,> shopify-app-template-node@1.0.0 serve
1717474653115,> cross-env NODE_ENV=production node index.js
1717474653119,sh: cross-env: not found
1717474653124,npm error Lifecycle script `serve` failed with error:
1717474653126,npm error code 127
1717474653126,npm error path /app/web
1717474653126,npm error workspace shopify-app-template-node@1.0.0
1717474653126,npm error location /app/web
1717474653126,npm error command failed
1717474653126,npm error command sh -c cross-env NODE_ENV=production node index.js
1717474653137,Backend Now Serving Requests.
1717474653137,App Build And Serve Script Complete.
Any leads to what I am missing?