Trying to get started developing apps, and I have gotten most of it started, except that when I use the command
shopify app dev
it fails with the error
<stdin>:2.26: ERROR: Could not resolve "@shopify/shopify_function/run"
I have so far tried to uninstall and reinstall Shopify CLI, update NPM, and restart the computer but it still does not seem to want to cooperate.
Full response below:
PS C:\Users\Aaron\ cliens\Checkout Bundler\checkout-bundler> shopify app dev
╭─ info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Using shopify.app.toml: │
│ │
│ • Org: Wick Creative │
│ • App: Checkout Bundler │
│ • Dev store: xyz.myshopify.com │
│ • Update URLs: No │
│ │
│ You can pass `--reset` to your command to reset your app configuration. │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ To update URLs manually, add the following URLs to shopify.app.toml under auth > redirect_urls and run │
│ `shopify app config push` │
│ │
│ │
│ • https://whenever-benefits-vertical-ro.trycloudflare.com/auth/callback │
│ • https://whenever-benefits-vertical-ro.trycloudflare.com/auth/shopify/callback │
│ • https://whenever-benefits-vertical-ro.trycloudflare.com/api/auth/callback │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
13:25:03 │ remix │ Running pre-dev command: "npx prisma generate"
13:25:03 │ graphiql │ GraphiQL server started on port 3457
13:25:05 │ fcb │ Building function fcb...
13:25:05 │ fcb │ Building GraphQL types...
13:25:06 │ remix │ Prisma schema loaded from prisma\schema.prisma
13:25:06 │ remix │ Datasource "db": SQLite database "dev.sqlite" at "file:dev.sqlite"
13:25:06 │ remix │
13:25:06 │ remix │ 1 migration found in prisma/migrations
13:25:06 │ remix │
13:25:06 │ remix │
13:25:06 │ remix │ No pending migrations to apply.
13:25:08 │ fcb │ Bundling JS function...
╭─ error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Build failed with 1 error: │
│ <stdin>:2:26: ERROR: Could not resolve "@shopify/shopify_function/run" │
│ │
│ To investigate the issue, examine this stack trace: │
│ at <stdin>:2:26: ERROR: Could not resolve " │
│ at failureErrorWithLog │
│ (../../../../../../../../../Aaron/AppData/Roaming/npm/node_modules/@shopify/cli/node_modules/esbuild/lib/main.js:1650) │
│ at (../../../../../../../../../Aaron/AppData/Roaming/npm/node_modules/@shopify/cli/node_modules/esbuild/lib/main.js:1058) │
│ at (../../../../../../../../../Aaron/AppData/Roaming/npm/node_modules/@shopify/cli/node_modules/esbuild/lib/main.js:1003) │
│ at buildResponseToResult │
│ (../../../../../../../../../Aaron/AppData/Roaming/npm/node_modules/@shopify/cli/node_modules/esbuild/lib/main.js:1056) │
│ at (../../../../../../../../../Aaron/AppData/Roaming/npm/node_modules/@shopify/cli/node_modules/esbuild/lib/main.js:1085) │
│ at <computed> │
│ (../../../../../../../../../Aaron/AppData/Roaming/npm/node_modules/@shopify/cli/node_modules/esbuild/lib/main.js:703) │
│ at handleIncomingPacket │
│ (../../../../../../../../../Aaron/AppData/Roaming/npm/node_modules/@shopify/cli/node_modules/esbuild/lib/main.js:763) │
│ at readFromStdout │
│ (../../../../../../../../../Aaron/AppData/Roaming/npm/node_modules/@shopify/cli/node_modules/esbuild/lib/main.js:679) │
│ at emit (node:events:519) │
│ at emit (node:domain:488) │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯