search

Home  >  Q&A  >  body text

javascript - webpack import stylus is treated as a dependency, how to solve it

Operation like this

import  'assets/stylus/index.styl';

Error reporting

 ERROR  Failed to compile with 1 errors                                                                                                                            
 This dependency was not found:
* assets/stylus/index.styl in ./src/main.js
To install it, you can run: npm install --save assets/stylus/index.styl

Make sure that stylus-loade has been installed, using vue-cli scaffolding development, but something went wrong

巴扎黑巴扎黑2790 days ago789

reply all(1)I'll reply

  • 为情所困

    为情所困2017-05-18 11:03:13

    Have you installed stylus? Please reinstall it

    reply
    0
  • Cancelreply