EmberJS在Ember构建prod时获取西兰花错误

vuv7lop3  于 2022-10-20  发布在  其他
关注(0)|答案(1)|浏览(134)

我得到的错误是,说无法读取null的属性“0”,但不确定它指的是什么。。

$ ember build --prod
cleaning up...
Build failed.
File: assets/api.css
The Broccoli Plugin: [broccoli-persistent-filter:CleanCSSFilter] failed with:
TypeError: Cannot read property '0' of null
    at findNameRoot (/Users/hodaraadam/dev/Apps/api/node_modules/clean-css/lib/selectors/extractor.js:66:59)
    at extract (/Users/hodaraadam/dev/Apps/api/node_modules/clean-css/lib/selectors/extractor.js:36:9)
    at restructure (/Users/hodaraadam/dev/Apps/api/node_modules/clean-css/lib/selectors/restructure.js:297:22)
    at optimize (/Users/hodaraadam/dev/Apps/api/node_modules/clean-css/lib/selectors/advanced.js:71:5)
    at minify (/Users/hodaraadam/dev/Apps/api/node_modules/clean-css/lib/clean.js:228:5)
    at whenSourceMapReady (/Users/hodaraadam/dev/Apps/api/node_modules/clean-css/lib/clean.js:135:7)
    at /Users/hodaraadam/dev/Apps/api/node_modules/clean-css/lib/clean.js:155:14
    at CleanCssPromise.CleanCSS.minify (/Users/hodaraadam/dev/Apps/api/node_modules/clean-css/lib/clean.js:127:42)
    at promisify (/Users/hodaraadam/dev/Apps/api/node_modules/clean-css-promise/index.js:31:9)
    at CleanCssPromise.minify (/Users/hodaraadam/dev/Apps/api/node_modules/clean-css-promise/index.js:30:14)
von4xj4u

von4xj4u1#

您的代码中有一个错误,它来自TypeError: Cannot read property '0' of null.请检查您的代码并检查此错误的来源。

相关问题