首页 新闻 会员 周边 捐助

angular4

0
[已解决问题] 解决于 2018-01-24 18:04
 请问angular-cli之前创建 引用第三方css和js的时候没问题  现成错误为ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1} 
 

@angular/cli: 1.3.0
node: 7.9.0

丿如何是好的主页 丿如何是好 | 菜鸟二级 | 园豆:213
提问于:2018-01-24 10:10
< >
分享
最佳答案
0
奖励园豆:5
dudu | 高人七级 |园豆:30778 | 2018-01-24 14:53

新人 麻烦 能 说详细点吗?

丿如何是好 | 园豆:213 (菜鸟二级) | 2018-01-24 17:37

@丿如何是好: 建议提供更完整的错误信息

dudu | 园豆:30778 (高人七级) | 2018-01-24 17:41

@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

丿如何是好 | 园豆:213 (菜鸟二级) | 2018-01-24 17:43

@丿如何是好: 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 | 园豆:30778 (高人七级) | 2018-01-24 17:59

@dudu: 嗯 是个问题 引起了 

谢谢大神

丿如何是好 | 园豆:213 (菜鸟二级) | 2018-01-24 18:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册