Closed blackarctic closed 4 years ago
I am unable to develop a package locally with yalc with module federation. This is particularly a need for developing stateful packages.
Steps to reproduce:
yalc publish
yalc add my-package
my-package
shared
ModuleFederationPlugin
Result: An error is thrown:
ERROR in overridable my-package Module not found: Error: Can't resolve 'my-package' in '/Users/nick/my-app'
Solved. package.json must have an entrypoint OR your package must have an index.js file at the root. Then this appears to work fine.
package.json
index.js
I am unable to develop a package locally with yalc with module federation. This is particularly a need for developing stateful packages.
Steps to reproduce:
yalc publish
inside it.yalc add my-package
and addmy-package
toshared
inModuleFederationPlugin
.Result: An error is thrown: