Uncaught ReferenceError: ref is not defined
时间: 2023-11-20 22:54:15 浏览: 180
根据引用和的内容,报错"Uncaught ReferenceError: ref is not defined"的解决方案是将webpack的版本从5.0.0降级到4.0.1。这个报错可能是因为webpack 5在默认情况下不再包含Node.js核心模块的polyfills导致的。降级webpack版本后,再运行npm install和npm start即可解决该问题。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* *2* [Uncaught ReferenceError: process is not defined 以及 “ERROR in ./node_modules/json-schema-ref-...](https://blog.csdn.net/canshegui2293/article/details/122824125)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文