Skip to content

Deprecation - Invalid Main Field #509

@jvkrakowski

Description

@jvkrakowski

Describe the problems
I use React Icons with Gatsby. Here is the error I received on load:

(node:46591) [DEP0128] DeprecationWarning: Invalid 'main' field in
'/Users/jvkrakowski/Desktop/dev/gatsby/nine-realms/node_modules/react-icons/package.json' of 'lib'. Please
either fix that or report it to the module author
(Use node --trace-deprecation ... to show where the warning was created)

Expected behavior
The error appears once you issue the "gatsby develop" command on terminal.

Desktop (please complete the following information):

  • Macbook Pro (16 inch Retina Display) on Catalina

Additional context
I updated to Gatsby version 4, and I'm using NPM version 8

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