为什么我的 Vue 应用程序在运行 yarn serve 时无法在依赖项的缓存中打开 scss 文件?

问题描述

我最近克隆了一个 Vuejs/Amplify AWS 应用程序。当我在 macos 终端中运行 brew services start elasticsearch 时,出现此错误

yarn serve

我已验证此文件存在于我的机器上,并且共享权限允许读取和写入,如您在此屏幕截图中所见。

enter image description here

我也尝试过清理纱线缓存,然后再次运行 Syntax Error: SassError: File to import not found or unreadable: xxx/.yarn/cache/ol-npm-5.3.3-0c6bed9f3c-f13c35e62d.zip/node_modules/ol/ol. on line 2 of xxx/.yarn/$virtual/vuelayers-virtual-42d8965565/0/cache/vuelayers-npm-0.11.36-a27e1924b3-8639d01359.zip/node_modules/vuelayers/src/styles/main.scss >> @import "ol/ol"; yarn install,结果相同。

这个错误的原因是什么?我应该采取哪些措施来解决这个问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)