Skip to content

Uncaught TypeError: (0 , tslib__WEBPACK_IMPORTED_MODULE_5__.__param) is not a function #58

@RolfVeinoeSorensen

Description

@RolfVeinoeSorensen

When adding ngx-matomo to my angular 14 solution I am unable to load my site because of the error below:

NgxMatomoRouterModule is the culprit, the NgxMatomoTrackerModule is loading fine

Uncaught TypeError: (0 , tslib__WEBPACK_IMPORTED_MODULE_5__.__param) is not a function
at 54392 (ngx-matomo-router.mjs:87:12)

minified by webpack:
DefaultPageUrlProvider = __decorate([
__param(0, Optional()),
__param(0, Inject(INTERNAL_ROUTER_CONFIGURATION)),
__param(1, Optional()),
__param(1, Inject(APP_BASE_HREF))
], DefaultPageUrlProvider);

Current code:
export class DefaultPageUrlProvider implements PageUrlProvider {
constructor(
@optional()
@Inject(INTERNAL_ROUTER_CONFIGURATION)
private readonly config: InternalRouterConfiguration,
@optional() @Inject(APP_BASE_HREF) private readonly baseHref: string | null,
private readonly platformLocation: PlatformLocation
) {}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions