stylus 导入不到文件?

来源:15-6 1像素border实现

__Lev

2016-12-11

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

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

写回答

1回答

NeurotoxinVX

2016-12-11

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

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

0
2
必能成功的
回复
__Lev
解决了吗 我到这一步也出现这个问题了
2017-01-05
共2条回复

Vue.js2.5+cube-ui重构饿了么App(经典再升级)

掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp

9868 学习 · 4162 问题

查看课程