Skip to content

@nx/vitest causes lint error "Buildable libraries cannot import or export from non-buildable libraries" for non-buildable libraries that use vite #33989

@BadMachine

Description

@BadMachine

Current Behavior

Seems like starting from nx@^22 a new dependency called @nx/vitest was added - it causes the lint error when a non-buildable library imported to an app.

Expected Behavior

No error since non-buildable libraries can be imported into applications

GitHub Repo

No response

Steps to Reproduce

  1. Upgrade to nx@^22
  2. setup non-buildable library using vite and an application
  3. import this library into your application
  4. enjoy the error

Nx Report

-

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions