Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js/tsc tranformer does not work with local plugins #30066

Open
1 of 4 tasks
Hommis opened this issue Feb 17, 2025 · 1 comment
Open
1 of 4 tasks

js/tsc tranformer does not work with local plugins #30066

Hommis opened this issue Feb 17, 2025 · 1 comment

Comments

@Hommis
Copy link

Hommis commented Feb 17, 2025

Current Behavior

A tsc transformer is not loaded from local workspace plugins.

Expected Behavior

Tsc tranformer refered as "@org/plugin/my-transformer" will load the transformer.

GitHub Repo

No response

Steps to Reproduce

  1. Create a new plugin project
  2. Create a new js project.
  3. Ensure that the plugin's path is propertly configured in {workspaceRoot}/tsconfig.base.json
  4. Create a typescript transformer in plugin project. Anything really.
  5. Configure the build step to use the transformer as in documentation by refering
  6. Attempt to build the project

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.8.0
OS             : win32-x64
Native Target  : x86_64-windows
pnpm           : 9.7.1

nx (global)        : 20.2.2
nx                 : 20.0.6
@nx/js             : 20.0.6
@nx/jest           : 20.0.6
@nx/eslint         : 20.0.6
@nx/devkit         : 20.0.6
@nx/eslint-plugin  : 20.0.6
@nx/plugin         : 20.0.6
typescript         : 5.5.4
---------------------------------------
Registered Plugins:
@nx-dotnet/core
@my-org/my-plugin
@nx/eslint/plugin
@nx/jest/plugin

---------------------------------------
Community plugins:
@nx-dotnet/core : 2.4.5
nxdoc           : 0.2.4
---------------------------------------
Local workspace plugins:
        @my-org/my-plugin

Failure Logs

Package Manager Version

pnpm 9.7.1

Operating System

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

Additional Information

No response

@Hommis
Copy link
Author

Hommis commented Feb 17, 2025

This behaviour can be seen in load-ts-transformers.ts where moduleResolver does not actually have the paths from tsconfig.base.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant