Server runtime error when importing images for front-end #603
PegasisForever
started this conversation in
General
Replies: 1 comment
-
Hey @PegasisForever — this is actually something that affects most all TypeScript projects. Typically the package Here are our build scripts that we typically use at TRBL:
You'll just need to make sure that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
If you import images in Custom Components,
After compiling, the image is copied to
build
(for front-end) but notdist
(for back-end)When running the back-end server, it tries to import the non-existent image from
dist
, causing error.Expected Behavior
The imported image should also be copied to
dist
.Current Behavior
The imported image is not copied to
dist
.Steps to Reproduce
yarn build
yarn serve
Detailed Description
Payload version: v0.17.2
Beta Was this translation helpful? Give feedback.
All reactions