Skip to content

Vite crash when using @std/text unstable features #7128

@ptphongkmf

Description

@ptphongkmf

Describe the bug
When using unstable features, like import { toTitleCase } from "@std/text/unstable-to-title-case";, vite will print this error to console:

Downloading https://jsr.io/@std/text/1.0.18/title_case_mapping.json?import
12:22:34 am [vite] Internal server error: expected value at line 1 column 1
  Plugin: builtin:vite-json
  File: [object Object]

Steps to Reproduce

Just import import { toTitleCase } from "@std/text/unstable-to-title-case"; and use it, vite will crash on dev.

Environment

  • OS: Windows 10
  • deno version: 2.7.14
  • std version: @std/text@^1.0.18

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