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

后端 未结 7 1249
醉梦人生
醉梦人生 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:17

    You can't use @angular/material and @angular/cdk version 6.1.0 since your angular dependencies is still at 5.2.0

    download the version 5.2.0

    npm install @angular/material@5.2.0
    

    And also keep your angular dependencies on a same version, your @angular/animations is at 5.2.11 where it should be 5.2.0

提交回复
热议问题