TypeError: Object(…) is not a function at eval (platform.es5.js:79) at eval (platform.es5.js:81)

后端 未结 7 1413
醉梦人生
醉梦人生 2021-02-05 10:52

I am getting the following error :

platform.es5.js:79 Uncaught TypeError: Object(...) is not a function
    at eval (platform.es5.js:79)
    at eval (platform.es         


        
7条回答
  •  轮回少年
    2021-02-05 11:19

    After downgraded the flex-layout, It works for me. I have downgraded flex-layout to 7.0.0-beta.24 version

    npm install @angular/flex-layout@7.0.0-beta.24
    

    as I have package.json like below

    "@angular/animations": "~7.2.0",
    "@angular/cdk": "~7.3.7",
    "@angular/common": "~7.2.0",
    "@angular/compiler": "~7.2.0",
    "@angular/core": "~7.2.0",
    "@angular/flex-layout": "^7.0.0-beta.24",
    "@angular/forms": "~7.2.0",
    "@angular/material": "^7.3.7",
    "@angular/platform-browser": "~7.2.0",
    "@angular/platform-browser-dynamic": "~7.2.0",
    "@angular/router": "~7.2.0",
    "core-js": "^2.5.4",
    "hammerjs": "^2.0.8",
    "ngx-device-detector": "^1.3.6",
    "rxjs": "~6.3.3",
    "tslib": "^1.9.0",
    "zone.js": "~0.8.26"
    

提交回复
热议问题