-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
I updated from Angular 5 to Angular 6 and got this error
auth.js:255 Uncaught ReferenceError: global is not defined
at Object../node_modules/firebase/auth.js (auth.js:255)
at __webpack_require__ (bootstrap:76)
at Object../node_modules/angularfire2/auth/auth.js (vendor.js:153434)
at __webpack_require__ (bootstrap:76)
at Object../node_modules/angularfire2/auth.js (vendor.js:153400)
at __webpack_require__ (bootstrap:76)
at Object../src/app/user/services/user.service.ts (follow.service.ts:10)
at __webpack_require__ (bootstrap:76)
at Object../src/app/user/components/feed/feed.component.ts (main.js:17464)
at __webpack_require__ (bootstrap:76)
Here my package.json
{
"name": "tagrank-fe-v1",
"version": "0.0.0",
"license": "MIT",
"engines": {
"node": "6.11.2",
"npm": "5.6.0"
},
"scripts": {
"ng": "ng",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"postinstall": "ng build --aot --prod",
"start": "node server.js"
},
"private": true,
"dependencies": {
"@angular/animations": "6.0.3",
"@angular/cdk": "^6.2.1",
"@angular/common": "6.0.3",
"@angular/compiler": "6.0.3",
"@angular/compiler-cli": "6.0.3",
"@angular/core": "6.0.3",
"@angular/forms": "6.0.3",
"@angular/http": "6.0.3",
"@angular/material": "^6.2.1",
"@angular/platform-browser": "6.0.3",
"@angular/platform-browser-dynamic": "6.0.3",
"@angular/platform-server": "6.0.3",
"@angular/router": "6.0.3",
"@ng-bootstrap/ng-bootstrap": "^1.1.2",
"@swimlane/ngx-charts": "7.3.0",
"@types/d3-shape": "^1.2.3",
"angular-typing-animation": "^0.4.7",
"angularfire2": "^4.0.0-rc0",
"core-js": "^2.5.7",
"d3": "^5.4.0",
"express": "^4.16.3",
"firebase": "^3.9.0",
"ng2-dragula": "^1.5.0",
"ng2-truncate": "^1.3.17",
"ng2-validation": "^4.2.0",
"ngx-clipboard": "^8.1.4",
"ngx-infinite-scroll": "^0.6.1",
"prerender-node": "^3.1.1",
"rendertron-middleware": "^0.1.2",
"rxjs": "^6.2.0",
"rxjs-compat": "^6.2.0",
"typescript": "2.7.2",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.6",
"@angular/cli": "6.0.7",
"@angular/language-service": "6.0.3",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^6.0.112",
"codelyzer": "~3.1.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.4.3",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.3.2",
"ts-node": "~3.2.0",
"tslint": "~5.3.2"
}
}
Metadata
Metadata
Assignees
Labels
No labels