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

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

    The reason of behind this, your current angularCLI version and you're current angular/material version & angular/CDK version. Please check it.

    like: Angular CLI version (7.4) and angular/material version(8.1).....so both are not the same path.

    change your angular/material version & angular/cdk version in package.json file.

    Example:- "@angular/material": "7.2.1", "@angular/cdk": "7.2.1", in package.json file.

    After that run this command = npm install

提交回复
热议问题