This code broke when upgrading from 6.0.0 to 6.1.0:
import Vue from "vue"
import { library } from "@fortawesome/fontawesome-svg-core"
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"
import {
faPlus,
} from "@fortawesome/free-solid-svg-icons"
library.add(
faPlus,
)
Vue.component("FontAwesomeIcon", FontAwesomeIcon)
The error is:
ERROR in ./src/components/register/font_awesome.ts 12:3-9
TS2345: Argument of type 'IconDefinition' is not assignable to parameter of type 'IconDefinitionOrPack'.
Type 'IconDefinition' is not assignable to type 'IconPack'.
Index signature for type 'string' is missing in type 'IconDefinition'.
10 |
11 | library.add(
> 12 | faPlus,
| ^^^^^^
This code broke when upgrading from 6.0.0 to 6.1.0:
The error is: