请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

stylus 导入不到文件?

ERROR in ./~/.0.25.0@css-loader!./~/.10.0.2@vue-loader/lib/style-rewriter.js?id=data-v-5d3f1af8!./~/.2.4.0@stylus-loader!./~/.10.0.2@vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue
Module build failed: Error: /Users/levi/workspace/vue/seller/src/App.vue:29:9
   25| }
   26| </script>
   27|
   28| <style rel='stylesheet/stylus'>
   29|   @import './common/stylus/minix'
---------------^
   30|   .tab
   31|     display: flex
   32|     width: 100%

failed to locate @import file ./common/stylus/minix.styl

    at CachedPathEvaluator.visitImport (/Users/levi/workspace/vue/seller/node_modules/.2.4.0@stylus-loader/lib/evaluator.js:157:21)
    at CachedPathEvaluator.Visitor.visit (/Users/levi/workspace/vue/seller/node_modules/.0.54.5@stylus/lib/visitor/index.js:28:40)
    at CachedPathEvaluator.Evaluator.visit (/Users/levi/workspace/vue/seller/node_modules/.0.54.5@stylus/lib/visitor/evaluator.js:160:18)
    at CachedPathEvaluator.Evaluator.visitRoot (/Users/levi/workspace/vue/seller/node_modules/.0.54.5@stylus/lib/visitor/evaluator.js:707:27)
    at CachedPathEvaluator.Visitor.visit (/Users/levi/workspace/vue/seller/node_modules/.0.54.5@stylus/lib/visitor/index.js:28:40)
    at CachedPathEvaluator.Evaluator.visit (/Users/levi/workspace/vue/seller/node_modules/.0.54.5@stylus/lib/visitor/evaluator.js:160:18)
    at CachedPathEvaluator.Evaluator.evaluate (/Users/levi/workspace/vue/seller/node_modules/.0.54.5@stylus/lib/visitor/evaluator.js:247:15)
    at Renderer.render (/Users/levi/workspace/vue/seller/node_modules/.0.54.5@stylus/lib/renderer.js:86:26)
    at /Users/levi/workspace/vue/seller/node_modules/.2.4.0@stylus-loader/index.js:163:12
    at tryCatchReject (/Users/levi/workspace/vue/seller/node_modules/.3.6.4@when/lib/makePromise.js:840:30)
    at runContinuation1 (/Users/levi/workspace/vue/seller/node_modules/.3.6.4@when/lib/makePromise.js:799:4)
    at Fulfilled.when (/Users/levi/workspace/vue/seller/node_modules/.3.6.4@when/lib/makePromise.js:590:4)
    at Pending.run (/Users/levi/workspace/vue/seller/node_modules/.3.6.4@when/lib/makePromise.js:481:13)
    at Scheduler._drain (/Users/levi/workspace/vue/seller/node_modules/.3.6.4@when/lib/Scheduler.js:62:19)
    at Scheduler.drain (/Users/levi/workspace/vue/seller/node_modules/.3.6.4@when/lib/Scheduler.js:27:9)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
 @ ./~/.1.0.0@vue-style-loader!./~/.0.25.0@css-loader!./~/.10.0.2@vue-loader/lib/style-rewriter.js?id=data-v-5d3f1af8!./~/.2.4.0@stylus-loader!./~/.10.0.2@vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-281 13:2-17:4 14:20-287

一直报这个错误。是怎么回事?

正在回答 回答被采纳积分+3

1回答

NeurotoxinVX 2016-12-11 22:08:56

failed to locate @import file ./common/stylus/minix.styl

你的 mixin 打错了名字,你写的是 minix 哦~

0 回复 有任何疑惑可以回复我~
  • 提问者 __Lev #1
    和名字没有关系哦。我文件夹里面就用的这个名字
    回复 有任何疑惑可以回复我~ 2016-12-12 09:31:15
  • 必能成功的 回复 提问者 __Lev #2
    解决了吗 我到这一步也出现这个问题了
    回复 有任何疑惑可以回复我~ 2017-01-05 16:28:00
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信