Unable to use beyond 0.1.0-8
See original GitHub issueDescribe 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:
- Created 5 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
@jfairley Actually never mind about the new error. It was because I only started
webpack-dev-server
. No errors now 😃@devoto13 Thanks for the tip! I will go check out the new error!