Uncaught ReferenceError: webpackJsonp is not defined
时间: 2023-11-20 12:55:54 浏览: 128
报错信息"Uncaught ReferenceError: webpackJsonp is not defined"是因为公共文件必须在自己引用的js文件之前引用。具体解决办法有以下几种:
1. 手动修改文件引用顺序,将公共文件放在自己引用的js文件之前。
2. 找到build→webpack.prod.js文件,在其中找到相关配置,确保公共文件在自己引用的js文件之前被引用。
3. 如果报错信息中还包含"Uncaught ReferenceError: jQuery is not defined",则需要将jQuery的引用放在其他所有js文件之前。确保jQuery在所有文件引用之前被引用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [webpackJsonp is not defined?](https://blog.csdn.net/qq_45880179/article/details/114281639)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [解决vue项目报错webpackJsonp is not defined问题](https://download.csdn.net/download/weixin_38608726/14826997)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [easyui解决:Uncaught ReferenceError: jQuery is not defined](https://download.csdn.net/download/weixin_38750761/14044307)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文