-
Notifications
You must be signed in to change notification settings - Fork 38
TS2339: Property 'addListener' does not exist on type 'ExtensionMessageEvent'. #90
Description
I am using below dependency for V3 update
"dependencies": {
"@angular/animations": "7.2.12",
"@angular/cdk": "7.3.6",
"@angular/common": "7.2.12",
"@angular/compiler": "7.2.12",
"@angular/core": "7.2.12",
"@angular/elements": "7.2.12",
"@angular/forms": "7.2.12",
"@angular/http": "7.2.12",
"@angular/material": "7.3.6",
"@angular/platform-browser": "7.2.12",
"@angular/platform-browser-dynamic": "7.2.12",
"@angular/router": "7.2.12",
"@aspnet/signalr": "1.1.4",
"@ng-bootstrap/ng-bootstrap": "4.1.0",
"@ngrx/effects": "7.4.0",
"@ngrx/store": "7.4.0",
"@webcomponents/custom-elements": "1.2.4",
"angular-resizable-element": "3.2.4",
"bootstrap": "4.3.1",
"chrome-types": "^0.1.348",
"concat": "1.0.3",
"core-js": "3.0.0",
"crypto-browserify": "3.12.0",
"document-register-element": "1.13.1",
"fs-extra": "7.0.1",
"hammerjs": "2.0.8",
"lodash": "4.17.11",
"material-design-icons": "3.0.1",
"node-sass": "^4.14.1",
"redux": "4.0.1",
"rxjs": "6.5.0",
"source-map": "^0.7.3",
"typescript-fsa": "2.5.0",
"zone.js": "0.8.29"
},
"devDependencies": {
"@angular-builders/custom-webpack": "7.4.3",
"@angular-builders/dev-server": "7.3.1",
"@angular-devkit/build-angular": "0.13.8",
"@angular-devkit/build-ng-packagr": "~0.13.0",
"@angular/cli": "7.3.3",
"@angular/compiler-cli": "7.2.12",
"@angular/language-service": "7.2.12",
"@types/chrome": "0.0.244",
"@types/jasmine": "3.3.9",
"@types/jasminewd2": "2.0.6",
"@types/lodash": "4.14.123",
"@types/node": "11.13.2",
"@types/source-map": "^0.5.7",
"codelyzer": "4.5.0",
"jasmine-core": "3.4.0",
"jasmine-spec-reporter": "4.2.1",
"karma": "4.0.1",
"karma-chrome-launcher": "2.2.0",
"karma-cli": "2.0.0",
"karma-coverage-istanbul-reporter": "2.0.4",
"karma-jasmine": "2.0.1",
"karma-jasmine-html-reporter": "1.4.0",
"prettier": "1.14.3",
"protractor": "6.0.0",
"rimraf": "2.6.3",
"ts-loader": "6.0.0",
"ts-node": "8.0.3",
"tslib": "1.9.3",
"tslint": "5.15.0",
"tslint-angular": "1.1.2",
"typescript": "3.2.4",
"webpack-cli": "3.3.2"
}
}
After build when i am exporting the extension i am getting the Error "TS2339: Property 'addListener' does not exist on type 'ExtensionMessageEvent'.
chrome.runtime.onMessage.addListener(callBack); in this line error is coming