在开发项目使用打包命令打包的时,遇到了 Property 'searchMes' is private and only accessible within class 'HomeComponent'. 这一类错误。

vue+ts:Property ‘searchMes‘ is private and only accessible within class ‘HomeComponent‘.

原因: 定义变量的时候都使用了 private 导致,打包的时候无法读取html页面使用private定义的变量

解决: 把定义的变量 private 修改 pubilc

vue+ts:Property ‘searchMes‘ is private and only accessible within class ‘HomeComponent‘.

vue+ts:Property ‘searchMes‘ is private and only accessible within class ‘HomeComponent‘.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-01-05
  • 2021-11-06
  • 2021-09-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案