module-federation/module-federation-examples

exmaple nextjs-dynamic-ssr fail

Closed this issue · 0 comments

latest example code, using pnpm to install

got error in the checkout project console:

home/nav offline
home/pages/index offline
home/nav offline [Error: ENOENT: no such file or directory, open '/_next/static/ssr/__federation_expose_nav-feaaf83a9b2b479c.js'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/_next/static/ssr/__federation_expose_nav-feaaf83a9b2b479c.js'
}
home/nav offline [Error: ENOENT: no such file or directory, open '/_next/static/ssr/__federation_expose_nav-feaaf83a9b2b479c.js'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/_next/static/ssr/__federation_expose_nav-feaaf83a9b2b479c.js'
}
home/pages/index offline [Error: ENOENT: no such file or directory, open '/_next/static/ssr/vendor-chunks/@module-federation.js'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/_next/static/ssr/vendor-chunks/@module-federation.js'
}
home/pages/index offline [Error: ENOENT: no such file or directory, open '/_next/static/ssr/vendor-chunks/@module-federation.js'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/_next/static/ssr/vendor-chunks/@module-federation.js'
}
Image