Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remix example start command fails #4175

Open
rdenman opened this issue Jul 3, 2024 · 0 comments
Open

Remix example start command fails #4175

rdenman opened this issue Jul 3, 2024 · 0 comments

Comments

@rdenman
Copy link

rdenman commented Jul 3, 2024

The remix example crashes on startup (build is fine) with the following error:

app1 start: /Users/rob.denman/workspace/module-federation-examples/remix/app1/build/index.js:5225
app1 start: /******/                    __webpack_require__.federation.bundlerRuntime.remotes({idToRemoteMap,chunkMapping, idToExternalAndNameMapping, chunkId, promises, webpackRequire:__webpack_require__});
app1 start:                                                                           ^
app1 start: TypeError: Cannot read properties of undefined (reading 'remotes')
app1 start:     at __webpack_require__.f.remotes (/Users/rob.denman/workspace/module-federation-examples/remix/app1/build/index.js:5225:59)
app1 start:     at /Users/rob.denman/workspace/module-federation-examples/remix/app1/build/index.js:5681:95
app1 start:     at Object.<anonymous> (/Users/rob.denman/workspace/module-federation-examples/remix/app1/build/index.js:5693:12)
app1 start:     at Module._compile (node:internal/modules/cjs/loader:1368:14)
app1 start:     at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
app1 start:     at Module.load (node:internal/modules/cjs/loader:1205:32)
app1 start:     at Module._load (node:internal/modules/cjs/loader:1021:12)
app1 start:     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12)
app1 start:     at node:internal/main/run_main_module:28:49
app1 start: Node.js v21.7.2
app1 start: Failed

Reproduction:

  • Clone the repo
  • Change to the remix directory
  • Run pnpm install
  • Run pnpm start

Note that app2 starts fine on it's own. app1 will start fine if the federated import is removed (import Button from 'app2/button';)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant