Alpine template can't be deployed?

Hello,

The template Alpine – Vercel can’t be deployed whatever I’ve tried.

Not sure, based on errors logs, how to adjust the template ? Could you provide any further insights :

Running “npm run build”

alpine-starter@0.1.0 build
nuxi build
[log] Nuxt 3.12.4 with Nitro 2.9.7
[log] Using 2024-04-03 as fallback compatibility date.
[error] Cannot find module ‘@nuxt/ui-templates’
Require stack:

  • /vercel/path0/index.js
    Require stack:
    • index.js
      at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
      at Function.resolve (node:internal/modules/helpers:190:19)
      at Function._resolve [as resolve] (node_modules/jiti/dist/jiti.js:1:241814)
      at resolveModule (node_modules/@nuxt/kit/dist/index.mjs:2224:29)
      at node_modules/nuxt-component-meta/dist/module.mjs:103:17
      at node_modules/hookable/dist/index.mjs:48:66
      at node_modules/hookable/dist/index.mjs:48:56
      at async node_modules/nuxt/dist/index.mjs:2277:7
      at async resolveApp (node_modules/nuxt/dist/index.mjs:5331:3)
      at async generateApp (node_modules/nuxt/dist/index.mjs:5180:3)
      at async _applyPromised (node_modules/perfect-debounce/dist/index.mjs:54:10)
      [error] Cannot find module ‘@nuxt/ui-templates’
      Require stack:
  • /vercel/path0/index.js
    Error: Command “npm run build” exited with 1

Thanks in advance.

Sincerely,

This looks like a known issue with the dependency they are using. You can find more details here: ERROR Cannot find module '@nuxt/ui-templates' · Issue #199 · nuxt-themes/alpine · GitHub

Hey swarnava,
Thank you for the input.
Indeed, I’ve seen different references (as Error: Cannot find module '@nuxt/ui-templates' · Issue #27592 · nuxt/nuxt · GitHub) but can’t find how to apply/edit the workaround in Vercel.
And couldn’t any solution (as mentioned in your example).
Thanks in advance :slight_smile:

Adding
"@nuxthq/studio": "^2.0.3",

To devDependencies of the package.json file, fixes the issue.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.