错误类型错误:无法读取未定义的属性“_options”

时间:2021-02-28 17:42:21

标签: javascript angular angular-material thingsboard

我从他们的 github 存储库中克隆了 thingsboard。但是当我要构建产品时,我收到了一个错误。在控制台它给了我这样的东西。

An unhandled exception occurred: Cannot read property '_options' of undefined
See "C:\Users\Asus\AppData\Local\Temp\ng-GjvaXO\angular-errors.log" for further details.

我使用“ng build --prod --vendor-chunk”来构建生产。

angular-errors.log 内部如下所示。

[error] TypeError: Cannot read property '_options' of undefined
    at module.exports (C:\Users\Asus\Desktop\HomeOffice\hydroanalytica\thingsboard\ui-ngx\extra-webpack.config.js:60:58)
    at Function.<anonymous> (C:\Users\Asus\Desktop\HomeOffice\hydroanalytica\thingsboard\ui-ngx\node_modules\@angular-builders\custom-webpack\dist\custom-webpack-builder.js:30:24)
    at Generator.next (<anonymous>)
    at C:\Users\Asus\Desktop\HomeOffice\hydroanalytica\thingsboard\ui-ngx\node_modules\@angular-builders\custom-webpack\dist\custom-webpack-builder.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\Asus\Desktop\HomeOffice\hydroanalytica\thingsboard\ui-ngx\node_modules\@angular-builders\custom-webpack\dist\custom-webpack-builder.js:4:12)
    at Function.buildWebpackConfig (C:\Users\Asus\Desktop\HomeOffice\hydroanalytica\thingsboard\ui-ngx\node_modules\@angular-builders\custom-webpack\dist\custom-webpack-builder.js:19:16)
    at browserWebpackConfig (C:\Users\Asus\Desktop\HomeOffice\hydroanalytica\thingsboard\ui-ngx\node_modules\@angular-builders\custom-webpack\dist\common.js:17:58)
    at initialize (C:\Users\Asus\Desktop\HomeOffice\hydroanalytica\thingsboard\ui-ngx\node_modules\@angular-builders\custom-webpack\node_modules\@angular-devkit\build-angular\src\browser\index.js:111:35)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:832:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

我不知道为什么会出现此错误。有什么解决办法吗?

0 个答案:

没有答案