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

Internal server error: [postcss] postcss-import: Unknown word #2827

Open
zAlweNy26 opened this issue Dec 3, 2024 · 1 comment
Open

Internal server error: [postcss] postcss-import: Unknown word #2827

zAlweNy26 opened this issue Dec 3, 2024 · 1 comment
Labels
bug Something isn't working triage v3 #1289 vue

Comments

@zAlweNy26
Copy link

zAlweNy26 commented Dec 3, 2024

Environment

  • Operating System: Linux
  • Bun Version: v1.1.29
  • Vue Version: v3.5.13
  • Vite Version: v5.4.11
  • Package Manager: bun@1.1.29

Is this bug related to Nuxt or Vue?

Vue

Version

v3.0.0-alpha.9

Reproduction

Unable to run on https://stackblitz.com/edit/vitejs-vite-2s99rp because of stackblitz/core#1855 (I think) but I'll create a repo as soon as I can.

Description

After following the setup tutorial for the installation of Nuxt UI in a Vue-only environment and running the project, I get an error (see logs).
The only different thing in the setup I had to do is that, as I am building a custom element, I did:

const Widget = defineCustomElement(App, {
	configureApp(app) {
		app.use(ui)
		app.use(i18n)
		app.provide(I18nInjectionKey, i18n)
	},
})

Instead of the usual createApp method. Did I miss something?

Additional context

No response

Logs

15:53:45 [vite] Internal server error: [postcss] postcss-import: /home/dany/Documenti/GitHub/chat-widget/node_modules/@nuxt/ui/dist/module.mjs:1:16: Unknown word
  Plugin: vite:css
  File: /home/dany/Documenti/GitHub/chat-widget/node_modules/@nuxt/ui/dist/module.mjs:1:15
  1  |  import defu, { defu as defu$1 } from 'defu';
     |                 ^
  2  |  import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, extendPages, hasNuxtModule, installModule } from '@nuxt/kit';
  3  |  import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates, c as buildTemplates } from './shared/ui.d52SSCwA.mjs';
      at Input.error (/home/dany/Documenti/GitHub/chat-widget/node_modules/postcss/lib/input.js:106:16)
      at Parser.unknownWord (/home/dany/Documenti/GitHub/chat-widget/node_modules/postcss/lib/parser.js:593:22)
      at Parser.other (/home/dany/Documenti/GitHub/chat-widget/node_modules/postcss/lib/parser.js:435:12)
      at Parser.parse (/home/dany/Documenti/GitHub/chat-widget/node_modules/postcss/lib/parser.js:470:16)
      at parse (/home/dany/Documenti/GitHub/chat-widget/node_modules/postcss/lib/parse.js:11:12)
      at get root [as root] (/home/dany/Documenti/GitHub/chat-widget/node_modules/postcss/lib/no-work-result.js:119:14)
      at Result.get [as root] (/home/dany/Documenti/GitHub/chat-widget/node_modules/postcss/lib/no-work-result.js:27:21)
      at loadImportContent (file:///home/dany/Documenti/GitHub/chat-widget/node_modules/vite/dist/node/chunks/dep-C6EFp3uH.js:867:33)
      at async Promise.all (index 0)
      at async resolveImportId (file:///home/dany/Documenti/GitHub/chat-widget/node_modules/vite/dist/node/chunks/dep-C6EFp3uH.js:800:27)
15:53:45 [vite] Pre-transform error: [postcss] postcss-import: /home/dany/Documenti/GitHub/chat-widget/node_modules/@nuxt/ui/dist/module.mjs:1:16: Unknown word
@zAlweNy26 zAlweNy26 added bug Something isn't working triage v3 #1289 labels Dec 3, 2024
@benjamincanac benjamincanac added the vue label Dec 4, 2024 — with Volta.net
@izoukhai
Copy link

izoukhai commented Dec 7, 2024

I have the exact same issue when trying to use Tailwinds's @source "PATH"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289 vue
Projects
None yet
Development

No branches or pull requests

3 participants