react-icons / react-icons/react-icons

Deprecation - Invalid Main Field

Open
#509 33 comments 19 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
12.7k
Forks
809
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the react-icons package.json main field referenced in the warning, then reproduce the warning with the reported Gatsby develop command. Done means the package no longer produces the invalid-main-field deprecation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.