Closed jvanderen1 closed 2 years ago
Does the app run and load the proper font? Or is this an IDE-only issue? If it's the latter, there's not much we can do, but you could look around the IntelliJ community to find out why.
VS Code underlines it as a link. It doesn't produce any error or warning, but fails if you try to click the link to follow it
The app is able to run and load the proper font. It's an error coming from IntelliJ.
I'm running WebStorm and I had the same issue. I was able to resolve this.
npm install @fontsource/fira-mono
Then within the IDE, right click on the node_modules folder, "Mark Directory As", and "Resource Root".
After this, I saw the font being downloaded when refreshing the About page, the font for "npm init svelte@next" looked different on the About page, and error went away within the IDE.
As an aside, I would tend to think that SvelteKit should have a reference to @fontsource/fira-mono inside the package.json but IDK if that was intentional.
Going to close this as it sounds like we have a solution — thanks @caseyplummer4haliontech
As an aside, I would tend to think that SvelteKit should have a reference to @fontsource/fira-mono inside the package.json but IDK if that was intentional.
SvelteKit shouldn't, but the default project template (what you get when you do npm init svelte
) does
Describe the bug
I use IntelliJ and when I load the sveltekit base project, I receive an error from my IDE saying that it cannot resolve 'fira-mono' at this line:
Here is a screenshot:
Reproduction
Logs
No response
System Info
Severity
annoyance
Additional Information
No response