简体   繁体   English

我无法在反应中使用 %PUBLIC_URL% 加载我的文件

[英]I can't load my files using %PUBLIC_URL% in react

even though I reinstalled my react scripts I showing same in the inspect that these files are not loaded but the favicon from the react is loading fine why this happening I have spent 2 hrs and still no uses即使我重新安装了我的反应脚本,我在检查中也显示了这些文件没有加载但是来自反应的图标加载正常为什么会发生这种情况我已经花了 2 个小时但仍然没有用

在此处输入图像描述

The %PUBLIC_URL% is replaced during the build with the value you have provided in your settings. %PUBLIC_URL%在构建期间被替换为您在设置中提供的值。 Try to run npm run build and inspect the build/ directory created by it.尝试运行npm run build并检查它创建的build/目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM