App reviews, troubleshooting, and recommendations
An error occurred in compiling and packaging, and the vite packaging path is wrong.
D:\code\bundle-app>yarn build
yarn run v1.22.19
$ shopify app build
product-discount │ Building GraphQL types...
frontend │
frontend │ > [email protected] build
frontend │ > vite build
frontend │
frontend │
frontend │ > [email protected] build
frontend │ > vite build
frontend │
frontend │
frontend │ > [email protected] build
frontend │ > vite build
frontend │
frontend │ node:internal/modules/cjs/loader:1078
frontend │ throw err;
frontend │ ^
frontend │
frontend │ Error: Cannot find module 'D:\code\bundle-app\node_modules\node_modules\vite\bin\vite.js'
frontend │ at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
frontend │ at Module._load (node:internal/modules/cjs/loader:920:27)
frontend │ at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
frontend │ at node:internal/main/run_main_module:23:47 {
frontend │ code: 'MODULE_NOT_FOUND',
frontend │ requireStack: []
frontend │ }
frontend │
frontend │ Node.js v18.16.0
── external error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error coming from `npm run build`
Command failed with exit code 1: npm run build
node:internal/modules/cjs/loader:1078
throw err;
^
Error: Cannot find module 'D:\code\bundle-app\node_modules\node_modules\vite\bin\vite.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.16.0
> [email protected] build
> vite build
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024