Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launches with broken link for viewer and viewer does not work. #746

Closed
michaelpumo opened this issue Oct 30, 2023 · 3 comments
Closed

Launches with broken link for viewer and viewer does not work. #746

michaelpumo opened this issue Oct 30, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@michaelpumo
Copy link

Version

@nuxtjs/tailwindcss: 6.8.1
nuxt: 3.8.0

What is Expected?

Tailwind viewer should be linked correctly and work.

What is actually happening?

Link when starting dev server is broken (missing slash) and even if navigating to _tailwind, it results in a 404.

Screenshot 2023-10-30 at 14 23 38 Screenshot 2023-10-30 at 14 24 21
@michaelpumo michaelpumo added the bug Something isn't working label Oct 30, 2023
@ineshbose
Copy link
Collaborator

Hi, can you share your Nuxt config please?

@michaelpumo
Copy link
Author

Sure thing, it's as follows:

import svgLoader from 'vite-svg-loader'

export default defineNuxtConfig({
  app: {
    head: {
      htmlAttrs: {
        lang: 'en-GB'
      },
      charset: 'utf-8',
      viewport: 'width=device-width, initial-scale=1',
      meta: [
        { name: 'author', content: 'Site' },
        { name: 'revisit-after', content: '1 day' },
        { name: 'msapplication-TileColor', content: '#ffffff' },
        { name: 'theme-color', content: '#ffffff' }
      ],
      link: [
        { rel: 'preconnect', href: 'https://a2.storyblok.com' },
        {
          rel: 'apple-touch-icon',
          sizes: '180x180',
          href: '/apple-touch-icon.png'
        },
        {
          rel: 'icon',
          type: 'image/png',
          sizes: '32x32',
          href: '/favicon-32x32.png'
        },
        {
          rel: 'icon',
          type: 'image/png',
          sizes: '16x16',
          href: '/favicon-16x16.png'
        },
        { rel: 'manifest', href: '/site.webmanifest' },
        { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#000000' }
      ]
    },
    pageTransition: { name: 'page', mode: 'out-in' },
    layoutTransition: false
  },
  devtools: {
    enabled: false
  },
  gtag: {
    id: ''
  },
  modules: [
    '@nuxt/devtools',
    '@pinia/nuxt',
    '@pinia-plugin-persistedstate/nuxt',
    [
      '@nuxtjs/tailwindcss',
      {
        cssPath: '@/assets/css/app.css',
        configPath: 'tailwind.config.ts'
      }
    ],
    ['@storyblok/nuxt', { accessToken: process.env.NUXT_STORYBLOK_TOKEN }],
    '@vue-macros/nuxt',
    'nuxt-gtag',
    'nuxt-simple-sitemap'
  ],
  postcss: {
    plugins: {
      'tailwindcss/nesting': {},
      tailwindcss: {},
      autoprefixer: {}
    }
  },
  runtimeConfig: {
    public: {
      SSR: process.env.NUXT_SSR,
      STORYBLOK_TOKEN: process.env.NUXT_STORYBLOK_TOKEN,
      STORYBLOK_VERSION: process.env.NUXT_STORYBLOK_VERSION
    }
  },
  sitemap: {
    siteUrl: 'https://example.com'
  },
  ssr: process.env.NUXT_SSR === 'true' ? true : false,
  typescript: {
    strict: true
  },
  vite: {
    plugins: [
      svgLoader({
        svgo: false
      })
    ],
    vue: {
      script: {
        defineModel: true,
        propsDestructure: true
      }
    }
  }
})

I tried to create a minimal reproduction but Codesandbox just was not working. I can try again later if it's needed?

@ineshbose
Copy link
Collaborator

Thanks. We've got an active issue regarding the viewer, and I was mostly looking if you had SSR enabled. Can I ask you to look at #561 and all issues linked to it please? I'll reopen the issue if you don't believe it's a separate issue and we can be provided with a reproduction please. 🙂

@ineshbose ineshbose closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants