Skip to content

🐛 Enabling experimentalFullSupport for HTML in Vue with tsx can cause errors #7981

@lisiur

Description

@lisiur

Environment information

CLI:
  Version:                      2.3.3
  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:                         alacritty
  JS_RUNTIME_VERSION:           v22.20.0
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         unset

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

Workspace:
  Open Documents:               0

What happened?

Reproduction:

https://biomejs.dev/playground/?code=PAB0AGUAbQBwAGwAYQB0AGUAPgAKACAAIAA8AEMAbwBtAHAAPgA8AC8AQwBvAG0AcAA%2BAAoAPAAvAHQAZQBtAHAAbABhAHQAZQA%2BAAoACgA8AHMAYwByAGkAcAB0ACAAbABhAG4AZwA9ACIAdABzAHgAIgAgAHMAZQB0AHUAcAA%2BAAoAIAAgAGMAbwBuAHMAdAAgAEMAbwBtAHAAIAA9ACAAKAApACAAPQA%2BACAAewAKACAAIAAgACAAcgBlAHQAdQByAG4AIAA8AGQAaQB2AD4APAAvAGQAaQB2AD4ACgAgACAAfQAKADwALwBzAGMAcgBpAHAAdAA%2BAA%3D%3D&language=vue

<template>
  <Comp></Comp>
</template>

<script lang="tsx" setup>
  const Comp = () => {
    return <div></div>
  }
</script>
parse: Type assertion are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.
parse: Unterminated regex literal

Expected result

It should not throw errors.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CoreArea: coreS-Bug-confirmedStatus: report has been confirmed as a valid bugS-Good first issueStatus: Good for newcomersS-Help-wantedStatus: you're familiar with the code base and want to help the project

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions