nuxt-modules / google-fonts

Google Fonts module for NuxtJS
https://google-fonts.nuxtjs.org
MIT License
497 stars 41 forks source link

Error when deploying to Vercel #192

Closed onurusluca closed 2 months ago

onurusluca commented 2 months ago

Vercel deploy failed with this error: [error] Error while requiring module @nuxtjs/google-fonts: Error: Cannot find module '/vercel/path0/nuxt-frontend/@nuxtjs/google-fonts'

Local build executes without problem. I don't have any custom settings etc.

  modules: [
    "@nuxtjs/google-fonts", // https://google-fonts.nuxtjs.org/getting-started/setup
  ],
  googleFonts: {
    families: {
      Inter: [400, 700],
    },
  },
rogerlopz commented 2 months ago

How did you solve this @onurusluca ? Im facing the same issue but with digital ocean

onurusluca commented 2 months ago

@rogerlopz I deleted .nuxt, .output, node_modules and lock file. Reinstalled @nuxtjs/google-fonts, So not a solution but I am thinking I didn't install @nuxtjs/google-fonts correctly. You can try it but I can't promise anything.

rogerlopz commented 2 months ago

Thank you for the response @onurusluca, I solved the issue by also reinstalling the package (my package-lock got updated). I also removed NODE_ENV=production from my digital ocean variables.