Skip to content

json import errors after 3.0.0 update #589

Description

@madisp

After bumping to 3.0.0 I'm getting

TypeError: Module "file:///.../node_modules/@fortawesome/fontawesome-svg-core/package.json" needs an import attribute of "type: json"

when running a test with vitest on a file that imports @fortawesome/react-fontawesome.
I'm guessing it has something to do with the import here?

import SVGCorePackageJson from '@fortawesome/fontawesome-svg-core/package.json'

Metadata

Metadata

Assignees

Labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions