Open ldeveber opened 11 months ago
Experiencing the same thing,
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/pro-regular-svg-icons": "^6.5.1",
"@fortawesome/pro-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
component library based on @mui/joy-5.0.0.beta.16
typescript 5.4.3
@ldeveber @jh-sh what is the version of @fortawesome/fontawesome-common-types
? It should be aligned with the other versions (fontawesome-svg-core and the free- and pro- packages).
Hey @robmadole, we faced those with the specified below:
package.json
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/pro-regular-svg-icons": "^6.5.1",
"@fortawesome/pro-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
pnpm-lock.yaml
#...
'@fortawesome/fontawesome-svg-core':
specifier: ^6.5.1
version: 6.5.1
'@fortawesome/free-regular-svg-icons':
specifier: ^6.5.1
version: 6.5.1
'@fortawesome/free-solid-svg-icons':
specifier: ^6.5.1
version: 6.5.1
'@fortawesome/pro-regular-svg-icons':
specifier: ^6.5.1
version: 6.5.1
'@fortawesome/pro-solid-svg-icons':
specifier: ^6.5.1
version: 6.5.1
'@fortawesome/react-fontawesome':
specifier: ^0.2.0
version: 0.2.0(@fortawesome/fontawesome-svg-core@6.5.1)(react@18.2.0)
###...
/@fortawesome/fontawesome-common-types@6.4.2:
resolution: {integrity: sha512-...}
engines: {node: '>=6'}
requiresBuild: true
dev: false
/@fortawesome/fontawesome-common-types@6.5.1:
resolution: {integrity: sha512-...}
engines: {node: '>=6'}
requiresBuild: true
dev: true
/@fortawesome/fontawesome-svg-core@6.4.2:
resolution: {integrity: sha512-...}
engines: {node: '>=6'}
requiresBuild: true
dependencies:
'@fortawesome/fontawesome-common-types': 6.4.2
dev: false
/@fortawesome/fontawesome-svg-core@6.5.1:
resolution: {integrity: sha512-...}
engines: {node: '>=6'}
requiresBuild: true
dependencies:
'@fortawesome/fontawesome-common-types': 6.5.1
dev: true
/@fortawesome/free-regular-svg-icons@6.5.1:
resolution: {integrity: sha512-...}
engines: {node: '>=6'}
requiresBuild: true
dependencies:
'@fortawesome/fontawesome-common-types': 6.5.1
dev: true
/@fortawesome/free-solid-svg-icons@6.5.1:
resolution: {integrity: sha512-...}
engines: {node: '>=6'}
requiresBuild: true
dependencies:
'@fortawesome/fontawesome-common-types': 6.5.1
dev: true
/@fortawesome/pro-regular-svg-icons@6.5.1:
resolution: {integrity: sha512-...}
engines: {node: '>=6'}
requiresBuild: true
dependencies:
'@fortawesome/fontawesome-common-types': 6.5.1
dev: true
/@fortawesome/pro-solid-svg-icons@6.5.1:
resolution: {integrity: sha512-...}
engines: {node: '>=6'}
requiresBuild: true
dependencies:
'@fortawesome/fontawesome-common-types': 6.5.1
dev: true
/@fortawesome/react-fontawesome@0.2.0(@fortawesome/fontawesome-svg-core@6.4.2)(react@18.2.0):
resolution: {integrity: sha512-...}
peerDependencies:
'@fortawesome/fontawesome-svg-core': ~1 || ~6
react: '>=16.3'
dependencies:
'@fortawesome/fontawesome-svg-core': 6.4.2
prop-types: 15.8.1
react: 18.2.0
dev: false
/@fortawesome/react-fontawesome@0.2.0(@fortawesome/fontawesome-svg-core@6.5.1)(react@18.2.0):
resolution: {integrity: sha512-...}
peerDependencies:
'@fortawesome/fontawesome-svg-core': ~1 || ~6
react: '>=16.3'
dependencies:
'@fortawesome/fontawesome-svg-core': 6.5.1
prop-types: 15.8.1
react: 18.2.0
dev: true
By going over pnpm-lock.yaml
I see duped types (might come from storybook stories or one of the packages).
+ we had some type inference issue around the code 🙃
Not sure if that can help now, if not - in a couple of days I can try to properly update FA and related packages once again to check.
@ldeveber @jh-sh what is the version of
@fortawesome/fontawesome-common-types
? It should be aligned with the other versions (fontawesome-svg-core and the free- and pro- packages).
Not sure. Our error originally came from a dependabot PR bump, so its totally likely its all out of sync.
From PR:
It does look like it bumped @fortawesome/fontawesome-common-types
, but since it was dependabot it didn't bump the others 😂
This is unrelated, but I would suggest this approach for dependabot for everyone using it:
Relevant code:
- package-ecosystem: npm
# ...
groups:
fontawesome:
patterns:
- "@fortawesome/*"
@robmadole this may deserve a section in the documentation
This was really useful! Thank you @tagliala
Bug description
dependabot opened a PR to bump fontawesome, and it broke. I don't see anything mentioned in the changelog about this error being expected? But also unexpected with semver? We are upgrading from 6.4.2.
Font Awesome version
6.5.1
Application and Operating System
app:
Web bug report checklist