Hi ,
I am getting this error while compiling because i installed this using session replay using
npm install @amplitude/plugin-session-replay-browser --save
import * as amplitude from '@amplitude/analytics-browser';
2import { sessionReplayPlugin } from '@amplitude/plugin-session-replay-browser';
3
4 // Create and Install Session Replay Plugin
5const sessionReplayTracking = sessionReplayPlugin();
6amplitude.add(sessionReplayTracking);
7
8// Your existing initialization logic with Browser SDK
9amplitude.init(API_KEY);
These are my dependencies
"dependencies": {
"@amplitude/analytics-browser": "^2.1.2",
"@amplitude/plugin-session-replay-browser": "^1.8.2",
"@angular/animations": "~11.1.0",
"@angular/cdk": "^11.2.12",
"@angular/common": "~11.1.0",
"@angular/compiler": "~11.1.0",
"@angular/core": "~11.1.0",
"@angular/forms": "~11.1.0",
"@angular/localize": "~11.1.0",
"@angular/material": "^11.2.12",
"@angular/platform-browser": "~11.1.0",
"@angular/platform-browser-dynamic": "~11.1.0",
"@angular/router": "~11.1.0",
"@handsontable/angular": "^12.2.0",
"@material-extended/mde": "^3.0.3",
"@ng-bootstrap/ng-bootstrap": "^9.1.3",
"@ngneat/hot-toast": "^3.4.3",
"@ngneat/overview": "^2.0.2",
"@ngx-translate/core": "^12.0.0",
"@ngx-translate/http-loader": "^7.0.0",
"@progress/kendo-licensing": "^1.2.2",
"@tinymce/tinymce-angular": "^4.2.4",
"bootstrap": "^5.1.3",
"crypto-js": "^4.1.1",
"file-saver": "^2.0.5",
"handsontable": "^12.2.0",
"html2canvas": "^1.4.1",
"input-currency-mask": "0.0.9",
"jodit-angular": "1.11",
"jquery": "^3.6.0",
"jspdf": "^2.5.0",
"jspdf-html2canvas": "^1.4.9",
"ng-mocks": "^14.2.2",
"ng-otp-input": "^1.8.1",
"ngx-captcha": "^7.0.0",
"ngx-owl-carousel-o": "^5.0.0",
"ngx-star-rating": "0.0.1",
"pdfmake": "^0.2.7",
"prettier-cli": "^0.1.0",
"rxjs": "~6.6.0",
"slick-carousel": "^1.8.1",
"tslib": "^2.4.1",
"zone.js": "~0.11.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1101.0",
"@angular/cli": "~11.1.0",
"@angular/compiler-cli": "~11.1.0",
"@types/file-saver": "^2.0.5",
"@types/gtag.js": "^0.0.12",
"@types/jasmine": "~3.6.0",
"@types/node": "^12.20.55",
"@types/pdfmake": "^0.2.2",
"codelyzer": "^6.0.0",
"jasmine-core": "~3.8.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.2.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.1.2"
}
Error: ./node_modules/@amplitude/session-replay-browser/lib/esm/events/events-idb-store.js 292:47-61
"export 'STORAGE_PREFIX' was not found in '@amplitude/analytics-core'
Error: ./node_modules/@amplitude/rrweb-snapshot/dist/rrweb-snapshot.js 254:15
Module parse failed: Unexpected token (254:15)
File was processed with these loaders:
* ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
* ./node_modules/@ngtools/webpack/src/ivy/index.js
You may need an additional loader to handle the result of these loaders.
| if (!n) return -1;
| const id = (_a = this.getMeta(n)) == null ? void 0 : _a.id;
> return id ?? -1;
| }
| getNode(id) {
Error: ./node_modules/@amplitude/rrweb/dist/rrweb.js 258:15
Module parse failed: Unexpected token (258:15)
File was processed with these loaders:
* ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
* ./node_modules/@ngtools/webpack/src/ivy/index.js
You may need an additional loader to handle the result of these loaders.
| if (!n2) return -1;
| const id = (_a2 = this.getMeta(n2)) == null ? void 0 : _a2.id;
> return id ?? -1;
| }
| getNode(id) {