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

i try to use init() and app cant find it #2668

Closed
5 tasks done
pouryaghazizadeh opened this issue Jun 25, 2024 · 4 comments
Closed
5 tasks done

i try to use init() and app cant find it #2668

pouryaghazizadeh opened this issue Jun 25, 2024 · 4 comments
Labels
need reproduction nextjs-mf nextjs-mf package identifier

Comments

@pouryaghazizadeh
Copy link

Describe the bug

i have a react app as host and try to connect to the remote module that is a next app.
in my host app try to use init() and i getting this error

Screenshot 2024-06-25 at 22 52 33
// Bootstrap.ts
import { init ,preloadRemote} from "@module-federation/enhanced/runtime";


init({
  name: '@demo/app-main',
  remotes: [
    {
      name: "auth",
      entry: "http://localhost:3200/_next/static/chunks/mf-manifest.json",
    }
  ],
  plugins: [
    // dynamicplugin()
  ]
});
preloadRemote([
  {
    nameOrAlias: 'auth',
    exposes: [],
  },
]);


`



### Reproduction

https://github.com/pouryaghazizadeh/chat-app

### Used Package Manager

pnpm

### System Info

```shell
macbook air M1

 "@module-federation/enhanced": "^0.2.1",

Validations

@ScriptedAlchemy
Copy link
Member

Repo is not public, please provide repo

Copy link
Contributor

Hello @pouryaghazizadeh. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 5 days.

@ScriptedAlchemy ScriptedAlchemy added area: Next Plugin nextjs-mf nextjs-mf package identifier and removed area: Next Plugin labels Jun 25, 2024
@pouryaghazizadeh
Copy link
Author

pouryaghazizadeh commented Jun 28, 2024

Repo is not public, please provide repo
Hi,
it is public now .

@pouryaghazizadeh pouryaghazizadeh changed the title i try to use init() and app cant find module i try to use init() and app cant find it Jun 28, 2024
Copy link
Contributor

github-actions bot commented Jul 4, 2024

As the issue was labelled with need reproduction, but no response in 5 days. This issue will be closed. Feel free to comment and reopen it if you have any further questions. For background, see Why reproductions are required.

由于该 issue 被标记为 "需要重现",但在 5 天内没有回应,因此该 issue 将被关闭。如果你有任何进一步的问题,请随时发表评论并重新打开该 issue。背景请参考 为什么需要最小重现

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need reproduction nextjs-mf nextjs-mf package identifier
Projects
None yet
Development

No branches or pull requests

2 participants