Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/hua_ban_yu/article/details/88786698
When you run the project report of this error, after the inquiry found <script> introduced import {resolve} from 'dns' incorrect path, the path modify correct enough
This dependency was not found:
* dns in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??re
f--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/question/question.vue?vue&type=script&lang=js&
Error Reason: import <script> introduced {resolve} from 'dns' bad
Solution: Modify the correct path