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.

Unable to use beyond 0.1.0-8

See original GitHub issue

Describe the problem

Over the last few months, I have tried to upgrade to the latests periodically, but I always get the same error.

Currently I am trying:

"@fortawesome/angular-fontawesome": "0.2.1",
"@fortawesome/fontawesome-svg-core": "1.2.6",
"@fortawesome/free-brands-svg-icons": "5.4.1",
"@fortawesome/pro-light-svg-icons": "5.4.1",
"@fortawesome/pro-regular-svg-icons": "5.4.1",
"@fortawesome/pro-solid-svg-icons": "5.4.1"

The latest dependencies that I have found to work in my app are:

"@fortawesome/angular-fontawesome": "0.1.0-8",
"@fortawesome/fontawesome-free-brands": "5.0.13",
"@fortawesome/fontawesome-pro-light": "5.0.13",
"@fortawesome/fontawesome-pro-regular": "5.0.13",
"@fortawesome/fontawesome-pro-solid": "5.0.13",
"@fortawesome/fontawesome-svg-core": "1.2.0-14",

Please see https://github.com/jfairley/font-awesome-build-failure for a full sample project to reproduce what I am seeing.

Upgrading any piece yields the same error on init (see below).

What did you expect?

I expect to be able to upgrade my dependencies and get the app to work.

Reproducible test case

I’ve pushed code to a repository for testing: https://github.com/jfairley/font-awesome-build-failure

This is a much slimmed down version of my app code.

When I run npm start, I get the following browser console error.

angular-fontawesome.js?1dff:110
Uncaught TypeError: Cannot read property 'replacementClass' of undefined
    at eval (angular-fontawesome.js?1dff:110)
    at Module../node_modules/@fortawesome/angular-fontawesome/fesm5/angular-fontawesome.js (main.js:305)
    at __webpack_require__ (main.js:64)
    at eval (asset-icons-module.ts?091b:3)
    at Object../src/modules/asset-icons/asset-icons-module.ts (main.js:3358)
    at __webpack_require__ (main.js:64)
    at eval (index.ts?7175:1)
    at Object../src/modules/asset-icons/index.ts (main.js:3546)
    at __webpack_require__ (main.js:64)
    at eval (index.ts?9f62:1)

It seems that config from import { config, icon, parse, text, counter } from '@fortawesome/fontawesome-svg-core'; is undefined.


Any help is appreciated.

I’m not using Angular CLI, but I hope that’s not the issue. I’m interested in staying with webpack.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
devoto13commented, Oct 23, 2018

@jfairley Actually never mind about the new error. It was because I only started webpack-dev-server. No errors now 😃

1reaction
jfairleycommented, Oct 23, 2018

@devoto13 Thanks for the tip! I will go check out the new error!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nexus Jenkins plugin fails requests when repository manager ...
In this scenario, connections to list repositories from the Nexus Platform Plugin for Jenkins fail. Nexus Repository Manager 3.x connection ...
Read more >
tadaohappy's Content - Earth and Beyond Emulator
I looked int the net7proxy window and this is what I see: Net7Proxy version 2.06 Using IP: 127.0.0.1 (127.0.0.1) 08/04/11 21:51:44 Attempting to...
Read more >
1610714 – [ASB] async binding failed - Red Hat Bugzilla
Since our APBs stored in the stage registry have not support async yet, so we need to use the below registry for this...
Read more >
1829 (ssl: fail gracefully on Alert instead of ClientHello) - nginx
When openssl encounters an error after it already connected, but before sending a ClientHello , it sends an Alert (might happen with other ......
Read more >
Chapter 6. Coding with mod_perl in Mind
If you prefer the documentation that comes with Perl, you can use either its online version (start ... The First Mystery: Why Does...
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