【发布时间】:2017-04-30 10:08:06
【问题描述】:
很抱歉发布回溯,但我想知道是否有人可以帮助我找出这里出了什么问题。
我正在使用 webpack 尝试编译 Bootstrap v4.0.0 alpha 5。但是,它失败并出现以下错误:
ERROR in ./styles/main.scss
Module build failed: ModuleBuildError: Module build failed:
@each $breakpoint in map-keys($gutters) {
^
Argument `$map` of `map-keys($map)` must be a map
Backtrace:
node_modules/bootstrap/scss/mixins/_grid.scss:50, in function `map-keys`
node_modules/bootstrap/scss/mixins/_grid.scss:50, in mixin `make-row`
assets/styles/common/_global.scss:15
in /Library/WebServer/Documents/myproject/wp-content/themes/mytheme/node_modules/bootstrap/scss/mixins/_grid.scss (line 50, column 24)
...
没有显示其余的回溯。
据我所知,我正在使用最新的一切 - 节点 6.9.2、npm 4.0.3、最新的模块。
【问题讨论】:
标签: twitter-bootstrap npm sass