Open ReinGomezWP opened 3 days ago
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:
The plugin should work
No response
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_
Same error happens for dotenv-webpack, another supported plugin
dotenv-webpack
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:
Expected Behavior
The plugin should work
GitHub Repo
No response
Steps to Reproduce
const getConfig = () => { return composePlugins(withNx(), withReact(), (config) => { // Plugins config.plugins = [ ...config.plugins, ...[ new ForkTsCheckerWebpackPlugin({ typescript: { configFile: './apps/main-app/tsconfig.app.json', }, }), ], ];
}); };