Skip to content

🐛 biome(parse): type assertion error on nuxt project #7909

@MateiNenciu

Description

@MateiNenciu

Environment information

CLI:
  Version:                      2.3.1
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  BIOME_THREADS:                unset
  NO_COLOR:                     unset
  TERM:                         xterm-256color
  JS_RUNTIME_VERSION:           v22.15.0
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         npm/11.4.0

Biome Configuration:
  Status:                       Loaded successfully
  Path:                         biome.json
  Formatter enabled:            true
  Linter enabled:               true
  Assist enabled:               true
  VCS enabled:                  true

Workspace:
  Open Documents:               0

What happened?

Reproduction url: https://github.com/MateiNenciu/nuxt-biome-parser

When trying to edit .vue files in a nuxt project, I get the following error from biome parser: "type assertion are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.biome(parse)".

Image

I tried with both zed and vscode IDE's and they report the same issue.

Expected result

The parser should not display this error.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CoreArea: coreA-LSPArea: language server protocolS-Bug-confirmedStatus: report has been confirmed as a valid bugworkaround

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions