问题:Uncaught TypeError: Object(…)(…).Class is not a function - cwy007/tips-and-skills GitHub Wiki
解法
Try to change your angular version in your package.json file to 4.1.3
{
"name": "shine",
"private": true,
"dependencies": {
"@angular/common": "^4.1.3",
"@angular/compiler": "^4.1.3",
"@angular/core": "^4.1.3",
"@angular/forms": "^4.1.3",
"@angular/http": "^4.1.3",
"@angular/platform-browser": "^4.1.3",
"@angular/platform-browser-dynamic": "^4.1.3",
"@rails/webpacker": "^3.2.0",
"bootstrap": "3",
"coffeescript": "1.12.7",
"core-js": "^2.5.3",
"rxjs": "^5.5.6",
"ts-loader": "^3.2.0",
"typescript": "^2.6.2",
"zone.js": "^0.8.20"
},
"devDependencies": {
"webpack-dev-server": "^2.9.7"
}
}
参考链接
[1] https://stackoverflow.com/questions/47205970/uncaught-typeerror-object-class-is-not-a-function