Open CP-Ram opened 2 years ago
After commented library
property section from remote mfe app
webpack.config.js
.Error got disappear for me.
module.exports = withModuleFederationPlugin({
name: "angular14",
// library: { type: "var", name: "angular14" },
filename: "remoteEntry.js",
exposes: {
'./web-components': './src/bootstrap.ts',
},
shared: {
...shareAll({ singleton: true, strictVersion: true, requiredVersion: 'auto' }),
},
});
Any suggestion on this , is this expected behavior?
Hi, I am using
angular v14.1.1
and"@angular-architects/module-federation": "^14.3.10", "@angular-architects/module-federation-tools": "^14.3.10", "ngx-build-plus": "^14.0.0"
in host and remote apps to exposes web-components.Here is my remote webpack.config.js
remote bootstrap.ts
remote app module.ts
Host App app.module.ts
bootstrap.ts
remote app running : http://localhost:4201/ host app:http://localhost:4200/
Error: zone.js:1061 Unhandled Promise rejection: container.init is not a function ; Zone: ; Task: Promise.then ; Value: TypeError: container.init is not a function
Environment: development