You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
🧵 Module Federation v2 Migration — TypeScript Module Error in Vanilla JS Project
Hello,
I'm currently using Module Federation v1 in my project and trying to migrate the host project to v2 using
@module-federation/enhanced
.However, my host project is a vanilla JavaScript project (no TypeScript).
Even though I set
dts: false
in theModuleFederationPlugin
options, I still get this error during the build:Error: Cannot find module 'typescript'
Require stack:
/node_modules/@module-federation/dts-plugin/..
🔍 Context
.d.ts
generation or type synchronization.❓ Question
Is there a way to fully disable the TypeScript dependency or prevent this plugin from requiring
typescript
in a non-TypeScript project?Any help would be greatly appreciated!
Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions