Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kreig303/nuxt-tailwindcss-3.3.0-bug

reproduce issue with @nuxtjs/tailwindcss module v3.3.0 when using external server
https://github.com/kreig303/nuxt-tailwindcss-3.3.0-bug

Last synced: 19 days ago
JSON representation

reproduce issue with @nuxtjs/tailwindcss module v3.3.0 when using external server

Awesome Lists containing this project

README

        

# nuxt-tailwindcss-3.3.0-bug

## how were you created

```sh
% npx create-nuxt-app tailwind-test
```

## how do i use you

```sh
% git clone https://github.com/kreig303/nuxt-tailwindcss-3.3.0-bug.git
% cd nuxt-tailwindcss-3.3.0-bug
% npm i
% npm run dev
```

## what do you prove

on line 89 of `.lib/module.js` in `v3.3.0` of `@nuxtjs/tailwindcss`, there is an attempt to log out the url.

```js
const url = nuxt.server.listeners ? nuxt.server.listeners[0].url : '/'
```

This uses `nuxt.server.listeners`, which is empty if the listener was created with an external server framework.
This example uses `koa`.