vue-bulma / vue-admin

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

Failed to compile. #256

Open MasterKnockCode opened 6 years ago

MasterKnockCode 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-54abe700","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 G:\IdeaProjects\vue-admin\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-54abe700","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

salamat1307 commented 6 years ago

I have the same problem

jremi commented 6 years ago

Try this to resolve:

  1. Go into the folder _/vue-admin/nodemodules/bulma/sass/utilities
  2. Add this file: https://raw.githubusercontent.com/jgthms/bulma/master/sass/utilities/initial-variables.sass
  3. Try to rebuild webpack (for example: npm run dev)
rannawang commented 6 years ago

I try to do this , but it didn't work ,and I find that file would have existed.

Samdyddd commented 6 years ago

and,you must annotated '@import '~wysiwyg.css/wysiwyg.sass';',at 'App.vue';

rannawang commented 6 years ago

It's already contained '@import '~wysiwyg.css/wysiwyg.sass' there.

free1139 commented 6 years ago

作为一个将近10年的码农,我表示陆续花了两天时间master都没编译通过让它运行起来,好尴尬

rannawang commented 6 years ago

我弄好几天,没弄出来,果断放弃了

-- 我是王冉冉

在 2018-08-12 12:57:25,"zhoushuyue" notifications@github.com 写道:

作为一个将近10年的码农,我表示陆续花了两天时间master都编译通过没运行起来,好尴尬

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

yarinkos commented 5 years ago

fixed !

change from : export default (name, index = false) => () => import(views/${name}${index ? '/index' : ''}.vue) to : export default (name, index = false) => r => require.ensure([], () => r(require(views/${name}${index ? '/index' : ''}.vue)), name);