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

use ModuleFederationPlugin of @module-federation/enhanced/webpack in vue-cli@5 project error #3440

Open
5 tasks done
functionwell opened this issue Jan 15, 2025 · 0 comments

Comments

@functionwell
Copy link

Describe the bug

install devDependencies "@module-federation/enhanced": "^0.8.8"

npm run serve

Error: node_modules/@module-federation/enhanced/dist/src/lib/container/runtime/FederationModulesPlugin.js:21
addContainerEntryModule: new tapable_1.SyncHook(['dependency']),
^

TypeError: tapable_1.SyncHook is not a constructor

tapable is not list in @module-federation/enhanced's peerDependencies, even install [email protected] in vue-cli@5 project, got build error

Reproduction

https://stackblitz.com/edit/vitejs-vite-jupwmuvt?file=vue.config.js

Used Package Manager

npm

System Info

System:
    OS: Linux 5.15 Ubuntu 20.04 LTS (Focal Fossa)
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12450H
    Memory: 2.28 GB / 7.62 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.2/bin/yarn
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm

no Browsers in WSL

Validations

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