You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error makes sense though, right? If you're omitting dev dependencies and trying to start a Nuxt dev server that uses module dependencies listed there, it wouldn't work. I think you're looking to run a build/preview or move the modules to dependencies.
Version
@nuxtjs/tailwindcss: 6.11.4
nuxt: 3.10.3
Steps to reproduce
npx nuxi@latest init
npm install -D @nuxtjs/tailwindcss
'@nuxtjs/tailwindcss'
tomodules
innuxt.config
(optional)npm install --omit=dev
What is Expected?
Successful install
What is actually happening?
We get an error
Cannot find module '/var/app/staging/@nuxtjs/tailwindcss'
In a production environment, it's common NOT to install development dependencies, hence the
npm install --omit=dev
, but that fails in Nuxt.This also applies to plugins of Tailwindcss, and even other modules like ESLINT.
We're forced to run
npm install
or move everything from devDependencies to dependencies.The text was updated successfully, but these errors were encountered: