Module not found: Error: Can't resolve '/static/images/global-logo-red@2x.png' in 'F:\diysc\diy_front\src\common'
时间: 2023-12-14 21:12:36 浏览: 106
openfx-arena:用于 Natron/Nuke/Resolve 的额外 OpenFX 插件-开源
This error message indicates that the module or file '/static/images/global-logo-red@2x.png' could not be found in the specified directory 'F:\diysc\diy_front\src\common'.
Possible solutions to this issue include:
1. Check the spelling and casing of the file name and directory path to ensure they are correct.
2. Verify that the file exists in the specified directory. If it does not, you may need to add it or update the path to point to the correct location.
3. Make sure that the file is included in your project's build configuration or bundling system, such as Webpack or Parcel, so that it can be properly resolved and imported.
4. If you are using a CDN or hosted file system to serve the image, verify that the URL is correct and accessible.
After making any necessary changes, restart your development server and try importing the file again to see if the error has been resolved.
阅读全文