Gulpビルドタスクが次のように失敗します:"Error: It's not clear which file to import for '@import ..."
written-by
Alfonso Crisci
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
問題
gulp build タスクを起動した後、ツールでは以下のようなエラーが発生します。
[15:14:33] 'build:compile-lib-sass' errored after 811 ms [15:14:33] Error in plugin 'gulp-sass' Message: build/_css/mystyle.scss Error: It's not clear which file to import for '@import "my-variables"'. Candidates: my-variables.scss my-variables.css Please delete or rename all but one of these files. on line 1 of build/_css/mystyle.scss >> @import 'my-variables'; ^
domainEmitter: [object Object] domainThrown: false [15:14:33] 'build:compile-css' errored after 812 ms [15:14:33] 'build' errored after 1.57 s