#woff files 404 error

10 messages · Page 1 of 1 (latest)

main grail
#

Can't find any solution for this error... [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (IBMPlexSans-SemiBold-Cyrillic.woff, line 0)

I use Vite, CarbonDesignSystem, Sass... All my SCSS imports from node modules work fine. Only these Woff and Woff2 files return 404 error. Anyone had the same issue?

noble knot
main grail
#

@noble knot node-modules/@ibm/plex/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Cyrillic.woff2

#

I think problem could be the file type as all other SCSS files work great from node-modules folder.

noble knot
#

How do you import them in your scss file ?

main grail
#

I don't actually. I thought they are imported from inside of Carbon node-module as its their dependency and Carbon documentation dosn't require we to import them directly.

#

Previously we made app using ElectronJs and it worked without importing, thats why I thought it might be file type problem.

#

@use "@carbon/react";
@use "@carbon/react/scss/colors";

// For content pages
@use "@carbon/react/scss/spacing" as *;
@use "@carbon/react/scss/type" as *;
@use "@carbon/react/scss/breakpoint" as *;
@use "@carbon/react/scss/theme" as *;

#

These are my only imports

noble knot
#

I found something but it’s from 2021 with some old version of vite and even that doesn’t answer shit lmao