出自 BV1MN411y7pw, P98
黑马AJAX-Node.js-Webpack教学视频中webpack部分,打包的时候出错

ERROR in main
Module not found: Error: Can't resolve './src' in 'V:\Web\mycode\webpack\01_webpack_use'
resolve './src' in 'V:\Web\mycode\webpack\01_webpack_use'
using description file: V:\Web\mycode\webpack\01_webpack_use\package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
using description file: V:\Web\mycode\webpack\01_webpack_use\package.json (relative path: ./src)
no extension
看了很多帖子,这个错误其实大概是路径写错。但是我重写了一次代码确保路径没有错。最终我发现是,index.html 被我命名为 test.html 从而出错。改回名字之后运行正确。

运行正确:

![Leetcode30-串联所有单词的子串[三种方法]](https://img-blog.csdnimg.cn/direct/a257d0aa0ecb40c9b3294c5fb9f55278.png)





![[LeetCode][426]【学习日记】将二叉搜索树转化为排序的双向链表——前驱节点pre 和 当前节点cur 的使用](https://img-blog.csdnimg.cn/direct/bd25e0beff2f48fea447f203816a4cee.png)










