tailwind triggers `nuxt.config` import protection
See original GitHub issueEnvironment
RootDir: /home/supp/code/test Nuxt project info:
- Operating System:
Linux
- Node Version:
v17.4.0
- Nuxt Version:
3.0.0-27383858.03cc191
- Package Manager:
yarn@1.22.17
- Bundler:
Vite
- User Config:
-
- Runtime Modules:
-
- Build Modules:
-
Reproduction
https://stackblitz.com/edit/github-vaufyy?devtoolsheight=33&file=package.json
Describe the bug
I just create a new clear project with npx nuxi create
and tried to run yarn dev
Errors compilng:
nuxt3/nuxt cannot be imported directly. Instead, import runtime Nuxt composables from #app or #imports. [importing /home/supp/code/test/node_modules/nuxt3/dist/meta/runtime/plugin from virtual:/home/supp/code/test/.nuxt/plugins/server.mjs]
This module cannot be imported in the Vue part of your app. [importing /home/supp/code/test/node_modules/@nuxt/nitro/dist/runtime/app/nitro.client.mjs from virtual:/home/supp/code/test/.nuxt/plugins/server.mjs]
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:31 (15 by maintainers)
Top Results From Across the Web
Install Tailwind CSS with Nuxt.js
Using npm, install tailwindcss and its peer dependencies, as well as @nuxt/postcss8 , and then run the init command to generate the tailwind.config.js...
Read more >Creating a free JAMstack website with Nuxt.js, Tailwind CSS ...
After finishing up my Java development bootcamp, I decided to begin developing a professional presence online by creating a website.
Read more >Nuxtjs - TailwindCSS: Install Tailwind CSS with Nuxt.js - Morioh
Clone this repository; Install dependencies using yarn install; Prepare for development using yarn dev:setup; Start development server using yarn dev. Features.
Read more >Nuxtjs v3 and Tailwindcss v3 PostCSS@8 not compatible
Import your css in app.vue . (optional) in previous version they recommend us to import tailwindcss in app.vue instead of nuxt.config.
Read more >Nuxt 3 + Tailwind + Eslint + i18n + Sentry Starter - Localazy
Nuxt 3 + Tailwind + Eslint + i18n + Sentry Starter ; // .eslintrc.js module.exports · env ; // nuxt.config.ts import { defineNuxtConfig...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For now, remove the
nuxt.config
scanning from your tailwind config.Do you think you need Tailwind to scan your nuxt.config?
PR send to TailwindLabs docs https://github.com/tailwindlabs/tailwindcss.com/pull/1160