Error upgrading to 0.1.0 from 0.0.20
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
@robmadole Okay, it looks like that worked. here’s my package.json code:
…and here’s my config file:
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'