nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.44k stars 2.33k forks source link

"fork-ts-checker-webpack-plugin" plugin is not working on Rspack applications #28391

Open ReinGomezWP opened 3 days ago

ReinGomezWP commented 3 days ago

Current Behavior

I've been trying to use the fork-ts-checker-webpack-plugin as it should be supported by RSpack according to the documentation

I am getting the error below: Image

Expected Behavior

The plugin should work

GitHub Repo

No response

Steps to Reproduce

  1. Create an Rspack application
  2. Set the following configuration
    
    import { composePlugins, withNx, withReact } from '@nx/rspack';
    import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';

const getConfig = () => { return composePlugins(withNx(), withReact(), (config) => { // Plugins config.plugins = [ ...config.plugins, ...[ new ForkTsCheckerWebpackPlugin({ typescript: { configFile: './apps/main-app/tsconfig.app.json', }, }), ], ];

return config;

}); };



### Nx Report

Node           : 19.5.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.5.0

nx                 : 19.8.3
@nx/js             : 19.8.3
@nx/jest           : 19.8.3
@nx/linter         : 19.8.3
@nx/eslint         : 19.2.3
@nx/workspace      : 19.8.3
@nx/cypress        : 19.2.3
@nx/devkit         : 19.8.3
@nx/eslint-plugin  : 19.8.3
@nx/playwright     : 19.8.3
@nx/react          : 19.8.3
@nx/storybook      : 19.2.3
@nrwl/tao          : 19.8.3
@nx/vite           : 19.8.3
@nx/web            : 19.8.3
@nx/webpack        : 19.8.3
nx-cloud           : 19.1.0
typescript         : 5.5.4
---------------------------------------
Community plugins:
@nx/rspack : 19.8.0
---------------------------------------

### Failure Logs

_No response_

### Package Manager Version

_No response_

### Operating System

- [x] macOS
- [x] Linux
- [x] Windows
- [ ] Other (Please specify)

### Additional Information

_No response_
ReinGomezWP commented 3 days ago

Same error happens for dotenv-webpack, another supported plugin Image