Emberjs在Ember Build Prod时会出现西兰花错误



我遇到的错误是,不能读取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)

您在代码中有错误,这来自TypeError: Cannot read property '0' of null.查看您的代码,并检查此错误来自何处。

相关内容

  • 没有找到相关文章

最新更新