yes
yes
(Write your answer here if relevant.)
(paste the output of the command here)
(Write your steps here:)
should load fonts
(Write what you thought would happen.)
Uncaught SyntaxError: Unexpected token <

(Write what happened. Please add screenshots!)
(Paste the link to an example project and exact instructions to reproduce the issue.)
Hi @ghulamhussain, are you able to show your HTML here? Or supply a test repository? Thanks!
@mrmckeb this is my head of html
`
`
Thanks @ghulamhussain, unfortunately it's hard to tell from that - it would be great if you could publish a test repository, and we can take a look there and see the issue.
@mrmckeb this is link to the test repo https://github.com/ghulamhussain/testReapo
@mrmckeb please have look
Thanks @ghulamhussain, very helpful.
All static assets should be served from the public directory. If you move src/fonts to public/fonts you will see that this will solve your problem :)
(I tested locally and it worked).
@mrmckeb thank you very much let me test it :)
@mrmckeb can you tell me the reason why it should be in public?
@mrmckeb please remove the same issue in this repo i am unable to remove the same issue in this configuration https://github.com/ghulamhussain/testRepo2 thanks in advance :+1:
Hi @ghulamhussain, that's the way that CRA is built - files that are not part of your build should be in public, and when you build your project, you'll see those copied over.
Any .js or .ts files in ./src that are not referenced in the project (via import) won't be included in the final build.
You can read more about the public folder here: https://facebook.github.io/create-react-app/docs/using-the-public-folder
The other repo you've provided is not buid using create-react-app sorry... I assume it's a similar issue, but please reach out to the team behind that project here - https://github.com/react-boilerplate/react-boilerplate.
@mrmckeb any further help would be much appreciated because i am stuck on this issue and i have created issue on react-boilerplate but they have not responded yet
I'll see if I can find some time over the weekend, but as I'm a volunteer here, my time is very short sorry @ghulamhussain.
There are some discussion on serving static content, such as this one: https://github.com/react-boilerplate/react-boilerplate/issues/984
Hopefully that helps.
@mrmckeb man you are a gem i finally resolved the issue thank you :100:
Glad you worked it out! Have a great weekend.
Most helpful comment
Glad you worked it out! Have a great weekend.