Comments (7)
I will take a look as soon is possible 💪
from universe.
In the meantime I ended up just mocking these in main.js:
// main.js
// ...
const storybookConfig = {
// ...
webpackFinal: async (config) => {
config.resolve.alias[
'my/module/name'
] = require.resolve('../__mocks__/mockMyModule.js')
return config
},
}
// mockMyModule.js
module.exports = {
foo: () => 'bar'
}
from universe.
🎉 This issue has been resolved in version 2.0.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
from universe.
@mikebridge The fix was published in version 2.0.1
🎉
from universe.
@fyodorovandrei I am on v2.0.1 but I'm getting the same error
![image](https://private-user-images.githubusercontent.com/106728504/299629375-98b03b08-0a43-4343-8537-9389d4d778a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDA1ODIsIm5iZiI6MTcyMzI0MDI4MiwicGF0aCI6Ii8xMDY3Mjg1MDQvMjk5NjI5Mzc1LTk4YjAzYjA4LTBhNDMtNDM0My04NTM3LTkzODlkNGQ3NzhhMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwOVQyMTUxMjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yODVhY2Y1ZjEyNDNhYmEzNWQ5ZjU3YmU2YmM3MGQ4ZjYyMjBiYjRiY2NjYjBhYzQ2ZjU0ZDZhMjFhZTI1ZTg0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.5IYNxYmUM5pBp9vjt8jsZ8Zh3EPkbeEE9mn4FB6g-QI)
from universe.
@pratyushseq If you still have this problem, please open an issue. I will investigate later. Thx
from universe.
@fyodorovandrei I manually installed nx and it solved this issue.
from universe.
Related Issues (20)
- Can't create Error Fallback when any Remote fails. HOT 9
- Chrome Extension is not working due to empty `moduleInfo` HOT 3
- web worker error in host HOT 2
- Exact matching alias does not work as expected in bridge webpack plugin HOT 2
- Shared dependency version cannot be resolved if installed at root of a monorepo
- Spaces in path to project with @module-federation/next-mf result in `Unterminated string in JSON at position` and HookWebpackError errors HOT 8
- how can I use in vue3 ts template HOT 8
- Cannot use vue2.7 lifecycle hook through module federation HOT 1
- [CORS]: @module-federation/nextjs-mf HOT 3
- Cannot use shared module in .mjs file correctly HOT 4
- Adding element to page with id that matches remote's name causes `TypeError: remoteEntryExports.init is not a function` HOT 2
- External modules not shared HOT 4
- [MF Plugin] "promise new Promise" syntax doesn't work with @ char in it HOT 4
- Entry runtime miss function "O" HOT 6
- esbuild plugin error: Top-level await is not available in the configured target environment HOT 1
- @module-federation/nextjs-mf version 8.4.0 breaks API routes
- Having production error - TypeError: (void 0) is not a function at .next/server/webpack-api-runtime.js:1:199 HOT 1
- Nextjs plugin doesn't work unless the "unsafe-eval" CSP header is set
- Vue Bridge package lacks `dist` HOT 4
- misleading error message when remoteEntry.files is empty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universe.