代码之家  ›  专栏  ›  技术社区  ›  angry kiwi

反应本土博览会如何要求形象?

  •  0
  • angry kiwi  · 技术社区  · 6 年前

    我想从资产/图像需要一个图像

    enter image description here

    诺蒂.png

    我有这个错误

    enter image description here

    0 回复  |  直到 6 年前
        1
  •  0
  •   Community CDub    4 年前

    您传递的图像位置不正确。正如您在错误中看到的: the module .. could not be found

    要修复它,请检查您调用该映像的当前文件的位置,然后返回到准确的位置并调用它。另外,如果您使用IDE,他们会向您推荐位置。

    更新:

    require('../assets/images/noti.png'