codesandbox / codesandbox/codesandbox-client

Fonts not working in "src" in React Typescript app

Open
#5,648 7 comments 5 reactions 1 assignee View on GitHub

@andrasbacsai is already working on this.

Since Apr 12, 2021.

🎒 Bundler 🤔 Improvement Sandbox Templates
Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

🐛 bug report

Preflight Checklist

  • I have read the
    Contributing Guidelines
    for this project.
  • I agree to follow the
    Code of Conduct
    that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

In react.js apps, fonts usually can be accessed in "src" folder, but Codesandbox app makes fonts accessible only in "public" folder.

How has this issue affected you? What are you trying to accomplish?

I have my project in github that I want to import to Codesandbox and run it in sandbox, and I have font files in the "src" folder, and Codesandbox does not allow me to access font files in "src", I don't want to move the font files from "src" to "public". I want my original project as it is.

To Reproduce

font-src-pubic

Link to sandbox: link (optional)
Your Environment
Software Name/Version
Сodesandbox
Browser
Operating System

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.