Thanks to visit codestin.com
Credit goes to github.com

Skip to content

πŸ› [v2] Configuration extends fails to resolve JSR packagesΒ #6515

@fujikky

Description

@fujikky

Environment information

CLI:
  Version:                      2.0.5
  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.16.0
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         pnpm/10.12.2

Biome Configuration:
  Status:                       Failed to load
  Error:                        Failed to resolve the configuration from @timetree/biome-config

Workspace:
  Open Documents:               0

What happened?

  1. Create a new project with JSR package dependency
  2. Add @timetree/biome-config from JSR using any package manager
  3. Configure biome.json to extend from the JSR package
  4. Run biome check

Reproduction repository: https://github.com/fujikky/biome-jsr-bug

Commands to reproduce:

git clone https://github.com/fujikky/biome-jsr-bug
cd biome-jsr-bug
pnpm install
pnpm biome check
> biome check

configuration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  βœ– Failed to resolve the configuration from @timetree/biome-config
    
    Caused by:
      Could not resolve @timetree/biome-config: module not found

Alternative package managers (also reproduce the issue):

  • npm: npm un @timetree/biome-config && npx jsr add -D @timetree/biome-config && npm run check
  • yarn: yarn install && yarn check

Expected result

Biome should successfully resolve the @timetree/biome-config package installed from JSR and apply

Additional Context

  • The package is correctly installed in node_modules/@timetree/biome-config
  • In Biome v1.9.4, the JSR packages were resolved correctly.
  • Workaround: Using relative path ./node_modules/@timetree/biome-config/biome.json in extends works
    correctly
  • This affects all package managers (npm, yarn, pnpm) that support JSR packages

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

Labels

A-ResolverArea: resolverS-Bug-confirmedStatus: report has been confirmed as a valid bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions