Skip to content

Not compatible with Jest ESM #555

@jasperlin451

Description

@jasperlin451

Describe the bug

When trying to upgrade my project to be fully ESM, I run into

    SyntaxError: The requested module '@fortawesome/react-fontawesome' does not provide an export named 'FontAwesomeIcon'

This should be fixable by updating the following lines:

"main": "index.js",
"module": "index.es.js",
"jsnext:main": "index.es.js",

to use the modern Node.js packaging standard.

{
  "type": "module",
  "exports": {
    "import": "./index.es.js",
    "require": "./index.js"
  }
} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions