Skip to content

构建 vue 文件报错 #189

@l246804

Description

@l246804

Describe the bug

在 .vue 内使用 <style src="./index.css"></style> 会导致构建失败,但是没有正常提示错误信息,而是报了下面的错。

Image Image

Reproduction

https://stackblitz.com/edit/stackblitz-starters-ulmfdwzb?file=src%2Fcomponents%2FTest%2Findex.vue

System Info

System:
    OS: Linux 6.14 Ubuntu 25.04 25.04 (Plucky Puffin)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 1.82 GB / 14.78 GB
    Container: Yes
    Shell: 5.2.37 - /bin/bash
  Binaries:
    Node: 22.17.1 - /run/user/1000/fnm_multishells/66207_1761199932214/bin/node
    npm: 10.9.2 - /run/user/1000/fnm_multishells/66207_1761199932214/bin/npm
    pnpm: 10.11.0 - /home/leihaohao/.bun/bin/pnpm
    bun: 1.2.22 - /home/leihaohao/.bun/bin/bun
  Browsers:
    Firefox: 144.0
    Firefox Developer Edition: 144.0

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions