@angular/cli: 1.3.0
node: 7.9.0
新人 麻烦 能 说详细点吗?
@丿如何是好: 建议提供更完整的错误信息
@dudu:
ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader?{"ident":"postcss"}!./node_modules/bootstrap/dist/css/bootstrap.css
Module build failed: BrowserslistError: Unknown browser major
at error (F:\my\node_modules\browserslist\index.js:37:11)
at Function.browserslist.checkName (F:\my\node_modules\browserslist\index.js:320:18)
at Function.select (F:\my\node_modules\browserslist\index.js:438:37)
at F:\my\node_modules\browserslist\index.js:207:41
at Array.forEach (native)
at browserslist (F:\my\node_modules\browserslist\index.js:196:13)
at Browsers.parse (F:\my\node_modules\autoprefixer\lib\browsers.js:44:14)
at new Browsers (F:\my\node_modules\autoprefixer\lib\browsers.js:39:28)
at loadPrefixes (F:\my\node_modules\autoprefixer\lib\autoprefixer.js:56:18)
at plugin (F:\my\node_modules\autoprefixer\lib\autoprefixer.js:62:18)
at LazyResult.run (F:\my\node_modules\postcss\lib\lazy-result.js:274:20)
at LazyResult.asyncTick (F:\my\node_modules\postcss\lib\lazy-result.js:189:32)
at LazyResult.asyncTick (F:\my\node_modules\postcss\lib\lazy-result.js:201:22)
at processing.Promise.then._this2.processed (F:\my\node_modules\postcss\lib\lazy-result.js:228:20)
at LazyResult.async (F:\my\node_modules\postcss\lib\lazy-result.js:225:27)
at LazyResult.then (F:\my\node_modules\postcss\lib\lazy-result.js:131:21)
@ ./node_modules/bootstrap/dist/css/bootstrap.css 4:14-123
@ multi ./src/styles.css ./node_modules/bootstrap/dist/css/bootstrap.css
@丿如何是好: bootstrap引起的,试试将bootstrap降级为 4.0.0 beta 2
bootstrap's 4.0.0 beta 3 came out today. Might have to downgrade to their beta 2 again to make it work. I am running into the same issue.
@dudu: 嗯 是个问题 引起了
谢谢大神