question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error upgrading to 0.1.0 from 0.0.20

See original GitHub issue

I hope I’m just missing something silly, but I get an error after upgrading to 0.1.0. My package.json has this:

    "@fortawesome/fontawesome": "1.1.8",
    "@fortawesome/fontawesome-free-solid": "5.0.13",
    "@fortawesome/fontawesome-free-regular": "5.0.13",
    "@fortawesome/react-fontawesome": "0.1.0",

…my icon config file is this:

import { library }  from '@fortawesome/fontawesome-svg-core'
import { regular } from '@fortawesome/free-regular-svg-icons'
import { solid } from '@fortawesome/free-solid-svg-icons'

library.add(regular, solid)

…and the file where I actually define my icons starts like this:

import React from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
...

…and when I start my React app, I get this error:

./node_modules/@fortawesome/react-fontawesome/index.es.js
Module not found: Can't resolve '@fortawesome/fontawesome-svg-core' in '/[my-local-path]/node_modules/@fortawesome/react-fontawesome'

I don’t think I’m missing anything in the instructions. The only thing that looks like it might be wrong is that I’d expect the packages for @fortawesome/fontawesome, @fortawesome/fontawesome-free-solid, and @fortawesome/fontawesome-free-regular to be updated, but according to NPM, 1.1.8, 5.0.13, and 5.0.13 respectively are the latest versions of each package.

Help?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Lukortechcommented, May 7, 2021

It worked before I had "@fortawesome/fontawesome-svg-core": "1.2.0", installed. Then I stopped the server and it went blank + error that you mentioned in the beginning.

Then after the installation of the core package all worked fine again, thanks for directions!

1reaction
bmueller-sykescommented, Jun 28, 2018

@robmadole Okay, it looks like that worked. here’s my package.json code:

    "@fortawesome/fontawesome-svg-core": "1.2.0",
    "@fortawesome/free-solid-svg-icons": "5.1.0",
    "@fortawesome/free-regular-svg-icons": "5.1.0",
    "@fortawesome/react-fontawesome": "0.1.0",

…and here’s my config file:

import { library }  from '@fortawesome/fontawesome-svg-core'
import { far } from '@fortawesome/free-regular-svg-icons'
import { fas } from '@fortawesome/free-solid-svg-icons'

library.add(far, fas)

What threw me was this line in UPGRADING.md: import { fas } from '@fortawesome/fontawesome-free-solid'

…which should be:

import { fas } from '@fortawesome/free-solid-svg-icons'

Read more comments on GitHub >

github_iconTop Results From Across the Web

vmkapi version removal and Installing/upgrading implication ...
When you attempt to upgrade your host from ESXi 6.7 or ESXi 6.5 to ESXi 7.0 with deprecated vmklinux driver VIBs without native...
Read more >
OFSAA 8.1.0.0.0 AAI ML RELEASE #2 v8.1.0.2.0 (ID 32120936)
Component Sub‑component Bug ID Administration Security Management 32344461 Administration 32349543 Application Builder Component Questionnaire 32517241
Read more >
Could not find rake-12.3.3 in any of the sources when using ...
when I execute this command to compile my project: sudo bundle exec fastlane beta. shows this error: Could not find rake-12.3.3 in any...
Read more >
Changelog | Package Manager UI website - Unity - Manual
"Build/Prepare for Content Update" will detect assets in locked bundles (bundles flagged as static, by default all local bundles). · "Build/Build ...
Read more >
Gossip Performance Improvements - Holochain Blog
HDI compatibility: 0.0.20 to 0.1.0 ... Bugfix: This release continues gossip reliability, fixing a bug in which a node can prematurely end a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found