angular-architects / module-federation-plugin

MIT License
683 stars 184 forks source link

'The package "package" wasn't found on the file system but is built into mode. Are you trying to bundle for node? You can use the "platform:node" to do that, which will remove this error' #530

Open carepollo opened 1 month ago

carepollo commented 1 month ago

I added native federation to an existing angular 16 project. When running NG serve I get 91 errors saying that could not resolve x or y package even though it worked just fine before adding it.

The packages that are not found are: Path, fs, OS, stream, zlib, assert, constants, quill, and so on, it repeats the error but found in different node modules.

carepollo commented 1 month ago

I created a dummy repo to replicate the error, the only difference with my project is that mine has way more dependencies on different angular plugins.