net-tech-
net-tech-
Explore posts from servers
CDCloudflare Developers
Created by net-tech- on 2/13/2023 in #workers-help
No loader is configured for ".png"
✘ [ERROR] No loader is configured for ".png" files: static/pr.png

index.js:1:15:
1import pr from "./static/pr.png"
~~~~~~~~~~~~~~~~~


✘ [ERROR] Build failed with 1 error:

index.js:1:15: ERROR: No loader is configured for ".png" files: static/pr.png
✘ [ERROR] No loader is configured for ".png" files: static/pr.png

index.js:1:15:
1import pr from "./static/pr.png"
~~~~~~~~~~~~~~~~~


✘ [ERROR] Build failed with 1 error:

index.js:1:15: ERROR: No loader is configured for ".png" files: static/pr.png
How and where do I specify a loader for .png files?
4 replies