Skip to content

Preview server: Unable to access json/svg file #2378

@roderickhsiao

Description

@roderickhsiao

Describe the Bug

For the latest package

@react-email/preview-server@4.2.3 react-email@4.2.3

When trying to access json/svg file, the console/preview server is throwing error

Could not find file

Able to reproduce from the starter kit.

Which package is affected (leave empty if unsure)

@react-email/preview, react-email

Link to the code that reproduces this issue

https://github.com/roderickhsiao/react-email-starter/blob/main/emails/vercel-invite-user.tsx#L48

To Reproduce

  1. Create a statitc json file
  2. Try to import in any HTML template
  3. Error thrown

Expected Behavior

No error should be thrown

What's your node version? (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions