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

webcomponent migration #30

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

insane-04
Copy link

No description provided.

@mflamm mflamm merged commit 126987a into onecx-apps:main Sep 12, 2024
6 checks passed
Comment on lines +41 to 44
export function withModuleFederationPlugin(arg0: { exposes: any }) {
throw new Error('Function not implemented.');
}
export function apiConfigProvider(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed anywhere?

},
{
path: 'search',
matcher: startsWith('search'),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change you are removing possibility to access DocumentSearchModule via empty path. You should do the following:

{
    matcher: startsWith(''),
    redirectTo: 'search',
    pathMatch: 'full',
  },

filename: 'remoteEntry.js',
exposes: {
'./DocumentRemoteModule': './src/app/remote.module.ts',
'./DocumentRemoteModule': 'src/bootstrap.ts',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use 'src/main.ts file here

@@ -58,8 +59,55 @@ const config = withModuleFederationPlugin({
requiredVersion: 'auto',
includeSecondaries: true,
},
'@onecx/angular-auth': {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should make sure that every package form package-lock.json starting with @onecx/* is shared. I think @onecx/angular-accelerator is missing.

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

Successfully merging this pull request may close these issues.

3 participants