Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

issue-reproduction/nuxt-vite-tailwindcss-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issue

nuxt/vite#164


I am trying to setup a project with Nuxt + Vite and TailwindCSS but I have some problems.

With some specific versions, TailwindCSS doesn't work and can't start dev server.

With some other specific versions, hot reload doesn't work well with tailwind and nuxt-vite. It seems that tailwind is not catching changes in the <template> tag. But changes in the <style> tag along with @apply still work.

See the following table for more details.

Reproduction & Versions

https://github.com/phamhongphuc/nuxt-vite-tailwindcss

branch nuxt-vite @nuxtjs/tailwindcss jit mode dev server hot reload
tw-jit no 4.2.1
vite-old-tw-jit 0.1.1 4.2.0
vite-tw-jit 0.1.1 4.2.1
vite-tw-no-jit 0.1.1 4.2.1

Description

1. Hot Reload issue

Related to nuxt/vite#159

2. Start dev server failed

 ERROR  Cannot read property 'importedModules' of undefined                                                   14:47:14

  at warmup (node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js:387:71)
  at async Promise.all (index 3)
  at async warmup (node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js:388:5)
  at async Promise.all (index 5)
  at async warmup (node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js:388:5)
  at async Promise.all (index 8)
  at async warmup (node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js:388:5)
  at async Promise.all (index 4)
  at async warmup (node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js:388:5)
  at async Promise.all (index 0)
  at async warmupViteServer (node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js:390:3)

i Waiting for file changes                                                                                    14:47:14
i Memory usage: 94.1 MB (RSS: 170 MB)                                                                         14:47:14
i Listening on: http://localhost:3000/

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published