Tailwindcss-module: Cannot find module '@nuxtjs/tailwindcss' - Deploy on Laravel Forge

Created on 12 Jun 2019  ·  4Comments  ·  Source: nuxt-community/tailwindcss-module

Hi,

I'm trying to deploy my nuxt.js app on Laravel Forge and get the following error:

Cannot find module '@nuxtjs/tailwindcss'

It's working well on my local machine.

Any idea what I'm missing?

Thank you.
Best regards,
Sebastien

Most helpful comment

Seems like maybe the documentation should not recommend setting it as a devDependency if it's supposed to be a dependency to be able to deploy your site?

All 4 comments

Hi,

Have you try to set it as dependencies instead of devDependencies?

Thanks Sebastien. That was the issue. Now working. Facing other issues related to pm2 to deploy nuxt using forge. If any resource you would recommend to follow for this, please let me know. That would be really helpful!

Seems like maybe the documentation should not recommend setting it as a devDependency if it's supposed to be a dependency to be able to deploy your site?

Hi,

Have you try to set it as dependencies instead of devDependencies?

As @adamwathan aready asked, I want to emphase: Why would the recommended installation be a way that does not work in production?
Just in case, here is a PR: #190

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joffreyBerrier picture joffreyBerrier  ·  8Comments

michaelpumo picture michaelpumo  ·  3Comments

duthanhduoc picture duthanhduoc  ·  7Comments

othy54 picture othy54  ·  6Comments

the94air picture the94air  ·  7Comments