启动项目报错Could not freeze “xxx” Cannot read property 'hash' of undefined

1,027 阅读1分钟

问题描述

启动项目时控制台报错如下:

[hardsource:fda6a40b] Could not freeze ./src/views/workOrder/components/detail.vue?vue&type=template&id=bb1a6da0&scoped=true&: Cannot read property 'hash' of undefined

分析解决

webpack运行时会基于hash生成cache,当前报错关于hash,所以问题可能发生在cache生成上面,删除node_modules/.cache文件夹后重新启动项目即可