Skip to content

Sanch0ous/module-federation-core-issue-dts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal repro: Module Federation DTS crash when consumeTypes: false

This repository is a minimal reproduction for a crash in Module Federation DTS when using:

  • @module-federation/rsbuild-plugin
  • dts: { consumeTypes: false, generateTypes: true }

Environment

  • Node: v20.15.0 (the version where this repro was observed)

Setup

cd REPO
npm install

Reproduce

npm run dev

Observed behavior

The Module Federation DTS worker crashes with:

  • Error: moduleFederationConfig is required
  • followed by a crash:
    • TypeError: Cannot read properties of undefined (reading 'exit') (when calling moduleServer.exit())

Expected behavior

With consumeTypes: false, DTS should not require a host config and should not crash (at minimum no TypeError).

Key configuration

The repro is driven by this config (see rsbuild.config.mts):

  • dts.consumeTypes = false
  • dts.generateTypes = true

About

Issue reproductiion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors