vue-bulma / vue-admin

We are refactoring it, using the latest Vue and Bulma. WIP
9.44k stars 1.62k forks source link

编译错误:File to import not found or unreadable: ~bulma/sass/utilities/initial-variables. #258

Open DOVER123 opened 6 years ago

DOVER123 commented 6 years ago
ERROR in ./~/_css-loader@0.27.3@css-loader!./~/_vue-loader@11.3.4@vue-loader/lib/style-compiler?{"id":"data-v-36c4ae96","scoped":false,"hasInlineConfig":true}!./~/_sass-loader@6.0.7@sass-loader/lib/loader.js!./~/_vue-loader@11.3.4@vue-loader/lib/selector.js?type=styles&index=0!./~/_vue-bulma-tabs@1.1.3@vue-bulma-tabs/src/Tabs.vue
Module build failed:
@import '~bulma/sass/utilities/initial-variables';
^
      File to import not found or unreadable: ~bulma/sass/utilities/initial-variables.
      in D:\vue-admin-master\node_modules\_vue-bulma-tabs@1.1.3@vue-bulma-tabs\src\Tabs.vue (line 114, column 1)
 @ ./~/_vue-style-loader@2.0.5@vue-style-loader!./~/_css-loader@0.27.3@css-loader!./~/_vue-loader@11.3.4@vue-loader/lib/style-compiler?{"id":"data-v-36c4ae96","scoped":false,"hasInlineConfig":true}!./~/_sass-loader@6.0.7@sass-loader/lib/loader.js!./~/_vue-loader@11.3.4@vue-loader/lib/selector.js?type=styles&index=0!./~/_vue-bulma-tabs@1.1.3@vue-bulma-tabs/src/Tabs.vue 4:14-340 13:3-17:5 14:22-348
 @ ./~/_vue-bulma-tabs@1.1.3@vue-bulma-tabs/src/Tabs.vue
 @ ./~/_vue-bulma-tabs@1.1.3@vue-bulma-tabs/src/index.js
 @ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@11.3.4@vue-loader/lib/selector.js?type=script&index=0!./client/views/components/Tabs.vue
 @ ./client/views/components/Tabs.vue
 @ ./client/views lazy ^\.\/.*\.vue$
 @ ./client/store/modules/menu/lazyLoading.js
 @ ./client/store/modules/menu/index.js
 @ ./client/store/index.js
 @ ./client/app.js
 @ ./client/index.js
 @ multi ./build/dev-client ./client/index.js

如果你在编译过程中出现了这个问题,尝试重新安装bulma,或者下载https://raw.githubusercontent.com/jgthms/bulma/master/sass/utilities/initial-variables.sass 放到对应文件夹下面。

Millermiller commented 6 years ago

https://github.com/vue-bulma/vue-admin/issues/256

Kuchiriel commented 6 years ago

@Millermiller This should be fixed, this is just a workaround. Either the entire project must be upgraded, or vue-bulma-tabs should revert back to 'variables' instead of 'initial-variables'.