【发布时间】:2017-12-21 01:54:27
【问题描述】:
我想在我的流星应用程序中使用material design components for web。不幸的是,当像这样从 npm 包中导入 mdc 时:
@import "{}/node_modules/material-components-web/material-components-web";
我收到以下错误:
While processing files with fourseven:scss (for target web.browser):
/client/stylesheets/Application.scss: Scss compiler error: File to import: @material/animation/mdc-animation not found in
file: {}/node_modules/material-components-web/material-components-web.scss
我猜这是由于 mdc 的结构。 material-components-web.scss 文件导入所有位于 node_modules/@material 中的单个组件,而不是在 node_modules/material-components-web 中。
我正在使用 fourseven:scss 包在我的流星应用程序中编译 sass。
如何解决/修复此问题?
【问题讨论】:
-
我在 github 问题跟踪器上请求了一个示例:github.com/material-components/material-components-web/issues/…
标签: meteor sass material-components