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

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

Closed
RolfVeinoeSorensen opened this issue Nov 10, 2022 · 4 comments · May be fixed by #59
Closed
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@RolfVeinoeSorensen
Copy link

RolfVeinoeSorensen commented Nov 10, 2022

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
) {}

@RolfVeinoeSorensen
Copy link
Author

tsconfig
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": false, //TODO check when swagger-codegen fixes encoder.ts override properties
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"module": "es2020",
// "esModuleInterop": true,
"lib": [
"es2020",
"es2021",
"dom"
],

package.json
"@angular/animations": "^14.2.8",
"@angular/cdk": "^14.2.1",
"@angular/common": "^14.2.8",
"@angular/compiler": "^14.2.8",
"@angular/core": "^14.2.8",
"@angular/forms": "^14.2.8",
"@angular/platform-browser": "^14.2.8",
"@angular/platform-browser-dynamic": "^14.2.8",
"@angular/router": "^14.2.8",
"@ngx-matomo/router": "^3.2.0",
"@ngx-matomo/tracker": "^3.2.0",
"rxjs": "~7.4.0",
"tslib": "^2.3.1",
"zone.js": "~0.11.4"

devdep: "typescript": "~4.7.4",

RolfVeinoeSorensen added a commit to RolfVeinoeSorensen/ngx-matomo that referenced this issue Nov 10, 2022
@EmmanuelRoux
Copy link
Owner

Hi @RolfVeinoeSorensen, could you please provide some reproductible code? (Stackblitz, GitHub repo...)

@EmmanuelRoux
Copy link
Owner

Hi @RolfVeinoeSorensen, is your problem solved?

@EmmanuelRoux EmmanuelRoux self-assigned this Jun 30, 2023
@EmmanuelRoux EmmanuelRoux added bug Something isn't working question Further information is requested labels Jun 30, 2023
@EmmanuelRoux EmmanuelRoux closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2023
@EmmanuelRoux
Copy link
Owner

Closed as not reproducible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants