-
Notifications
You must be signed in to change notification settings - Fork 249
Description
With what library do you have an issue?
native-federation
Reproduction of the bug/regression with instructions
Using TailwindCSS with Native Federation on the latest Angular stack causes the build to crash with a Node.js ERR_INVALID_ARG_VALUE error during stylesheet processing. The error is
INFO [Federation SSE] Local reloader initialized with endpoint /@angular-architects/native-federation:build-notifications
INFO Building federation artefacts
node:internal/modules/cjs/loader:1966
throw new ERR_INVALID_ARG_VALUE('filename', filename,
^
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received './'
at createRequire (node:internal/modules/cjs/loader:1966:13)
at StylesheetPluginFactory.initPostcss (C:\Users\Shankar\Documents\demo\fed-testing\node_modules@angular\build\src\tools\esbuild\stylesheets\stylesheet-plugin-factory.js:153:78) {
code: 'ERR_INVALID_ARG_VALUE'
}
Node.js v24.0.0
This happens consistently during federation artefact generation.
You can reproduce by cloning the repo from here https://github.com/shankaryadavy9/fed-testing.git
Expected behavior
latest Native federation and TailwindCSS should work seamlessly
Versions of Native/Module Federation, Angular, Node, Browser, and operating system
Node --version : v24.0.0
Angular --version :21.0.4
OS: Windows 11
Browser: Chrome latest
Tailwindcss@4.1.18 installed using ng add tailwindcss
Native federation : 21.0.3 installed and initiated using
npm i @angular-architects/native-federation -D
ng g @angular-architects/native-federation:init --project fed-testing --port 4200 --type dynamic-host
Other information
If I remove native federation Tailwindcss works perfectly
I would be willing to submit a PR to fix this issue
- Yes
- No