E
E
Evgeniy Rybalko2020-10-17 01:23:21
npm
Evgeniy Rybalko, 2020-10-17 01:23:21

React-scripts start not loading font styles, what should I do?

In the finished bundle, all fonts are loaded correctly
5f8a1cb55c1a0791427069.jpeg
. But when you run react-scripts start, some of the fonts in the components are not loaded
5f8a1cdd38d5d743673607.png
. At the same time, only some of the components have such a problem.
I do not use my styles, I do not redefine fonts. I drag all components from https://atlassian.design/components/avatar/examples

"scripts": {
    "start": "react-scripts start",
    "build": "webpack --mode development",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  }

What am I doing wrong? Need to move away from react-scripts?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy Rybalko, 2020-10-18
@whereeaglesdare

I debugged, my mistake, neither react-scripts nor webpack had anything to do with it: the page to which I added the bundle already had global styles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question