Skip to content

Spaces in path to configFile break build #396

Description

@avandijk-wur

vuetify-nuxt-module version

1.0.0-rc.6

Nuxt version

4.5.2

Vuetify version

3.13.4

Reproduction

Steps to reproduce

  1. Create a Nuxt project on a Windows environment on a path that contains a space, e.g. E:/Jenkins/workspace/pull request build
  2. Add sass-embedded
  3. Add the vuetify-nuxt-module
  4. Create a file 'styles/settings.scss' with the following contents:
@use 'vuetify/settings' with(    
    $body-font-family: 'Comic Sans MS'
)
  1. Define a Nuxt configuration with a configFile, e.g.:
export default defineNuxtConfig({
  css: [resolve('styles/ui.scss')],
  imports: {
    dirs: [resolve('composables/**'), resolve('stores/**'), resolve('utils/**')],
  },
  modules: ['vuetify-nuxt-module'],
  vuetify: {
    moduleOptions: {
      prefixComposables: ['useLayout'], // Prevent conflict with Nuxt useLayout, See https://github.com/vuetifyjs/cli/issues/25
      styles: {
        configFile: 'styles/settings.scss',
      },
    },
  },
})
  1. Run npx nuxt generate

Expected behavior

nuxt generate should succeed

Actual behavior

nuxt generate exits with the following error:

 [plugin vite:css] virtual:nuxt:node_modules%2F.cache%2Fnuxt%2F.nuxt%2Fvuetify%2Fvuetify.settings.scss
│  Error: [sass] Error: Can't find stylesheet to import.
│    ╷
│  1 │ @use 'E:/Jenkins/workspace/pull request build/styles/settings.scss';

System info

Operating system Windows 10.0.26200
CPU AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics (16 cores)
Node.js version v26.8.1
nuxt/cli version 3.37.0
Package manager [email protected]
Nuxt version 4.5.2
Nitro version 2.13.4
Builder [email protected]
Config app, compatibilityDate, components, devServer, devtools, modules, srcDir, ssr, typescript, vite
Modules @nuxt/[email protected]

Additional context

No response

Validations

  • I have searched the existing issues and this is not a duplicate.
  • I have provided a minimal reproduction.
  • I have read the documentation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions