nitro icon indicating copy to clipboard operation
nitro copied to clipboard

503 Server Unavailable

Open kalaomer opened this issue 3 years ago • 1 comments

Environment

OS: Macos Platform: Docker Compose Version: 0.4.8 Nuxt Version: v3 External Modules: @nuxtjs/tailwindcss

Reproduction

import {defineNuxtConfig} from 'nuxt'

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
    modules: ['@nuxtjs/tailwindcss'],

    css: [
        'element-plus/dist/index.css',
        "@/assets/scss/main.scss"
    ],


    tailwindcss: {
        cssPath: '~/assets/scss/tailwind.scss',
        viewer: false,
    },

    build: {
        extractCSS: true,
    }
})

Describe the bug

When I change file, hot reload fails and break the server.

CLI Command: nuxt dev --host=0.0.0.0 --port=8080

There is two thing may break the code, first tailwind integration and second custom port number. But actually which one is the main issue i couldn't get it.

Screen Shot 2022-06-23 at 00 19 02

Screen Shot 2022-06-23 at 00 18 41

Additional context

No response

Logs

No response

kalaomer avatar Jun 22 '22 21:06 kalaomer

Looks like its the custom port. Did you try another? Its likely that 8080 is already used by something else (in this case a nitro worker) ?

chris-visser avatar Jun 30 '22 19:06 chris-visser

Hi again. I have made a new tracker for this issue https://github.com/unjs/nitro/issues/1454

pi0 avatar Jul 17 '23 13:07 pi0