Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to decode downloaded font #503

Closed
yepMad opened this issue Jun 2, 2022 · 1 comment
Closed

Failed to decode downloaded font #503

yepMad opened this issue Jun 2, 2022 · 1 comment
Labels
question Further information is requested

Comments

@yepMad
Copy link

yepMad commented Jun 2, 2022

Describe the bug
After building the project and putting it online, there is a warning on the console that says there was an error decoding the downloaded fonts. I use Rubik.

To Reproduce

  1. Create project with CRA typescript template
  2. Install and use @fontsource/rubik
  3. Build the project
  4. Open the console

Expected behavior
No warnings will be generated.

Screenshots
image

Additional context

    "@chakra-ui/react": "^2.0.0-next.5",
    "@craco/craco": "^6.4.3",
    "@emotion/react": "^11",
    "@emotion/styled": "^11",
    "@fontsource/rubik": "^4.5.9",
    "@hookform/resolvers": "^2.8.8",
    "@reduxjs/toolkit": "^1.8.1",
    "@testing-library/jest-dom": "^5.14.1",
    "@testing-library/react": "^13.0.0",
    "@testing-library/user-event": "^13.2.1",
    "@types/jest": "^27.0.1",
    "@types/node": "^16.7.13",
    "@types/react": "^18.0.0",
    "@types/react-dom": "^18.0.0",
    "apexcharts": "^3.35.2",
    "axios": "^0.27.2",
    "framer-motion": "^6",
    "i18n-js": "^3.9.2",
    "query-string": "^7.1.1",
    "react": "^18.1.0",
    "react-apexcharts": "^1.4.0",
    "react-dom": "^18.1.0",
    "react-hook-form": "^7.31.1",
    "react-icons": "^4.3.1",
    "react-query": "^3.39.0",
    "react-redux": "^8.0.1",
    "react-router-dom": "^6.3.0",
    "react-scripts": "5.0.1",
    "typescript": "^4.4.2",
    "web-vitals": "^2.1.0",
    "yup": "^0.32.11"
@yepMad yepMad added the bug Something isn't working label Jun 2, 2022
@ayuhito
Copy link
Member

ayuhito commented Jun 2, 2022

Seems to be a Webpack configuration error in CRA/craco when they migrated from css-loader v5 to v6.

Please refer to the solutions mentioned in webpack-contrib/css-loader#1354.

@ayuhito ayuhito added question Further information is requested and removed bug Something isn't working labels Jun 4, 2022
@ayuhito ayuhito closed this as completed Jun 15, 2022
@ayuhito ayuhito reopened this Apr 17, 2023
@ayuhito ayuhito closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants