Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(node:13869) [DEP0128] DeprecationWarning #591

Closed
aliffaizar opened this issue Aug 31, 2022 · 4 comments
Closed

(node:13869) [DEP0128] DeprecationWarning #591

aliffaizar opened this issue Aug 31, 2022 · 4 comments

Comments

@aliffaizar
Copy link

(node:13869) [DEP0128] DeprecationWarning: Invalid 'main' field in '.../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)

@champsupertramp
Copy link

Getting this warning as well.

   "@docsearch/js": "3",
    "@heroicons/react": "v1",
    "@reach/skip-nav": "^0.16.0",
    "@react-icons/all-files": "^4.1.0",
    "focus-visible": "^5.1.0",
    "intersection-observer": "^0.10.0",
    "markdown-to-jsx": "^6.11.4",
    "next": "12.3.1-canary.2",
    "nextra": "^2.0.0-beta.20",
    "nextra-theme-docs": "^2.0.0-beta.20",
    "prism": "^4.1.2",
    "prism-react-renderer": "^1.3.5",
    "prismjs": "^1.29.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-icons": "^4.4.0",
    "react-intersection-observer": "^8.26.2",
    "react-router-dom": "^6.3.0",
    "react-table": "^7.8.0",
    "react-tailwind-table": "^1.1.1"
    ```

@DeviousLab
Copy link

Facing the same warning message when I imported react-icons into an Astro project.
(node:6802) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/devious/Documents/Projects/ux-portfolio-astro/node_modules/react-icons/package.json' of 'lib'. Please either fix that or report it to the module author

@tdronkers04
Copy link

I'm seeing the same warning with a Next.js project

(node:42641) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/tim/Documents/portfolio-website/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)
"dependencies": {
    "@apollo/client": "^3.6.9",
    "next": "12.2.5",
    "prop-types": "^15.8.1",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-icons": "^4.4.0",
    "react-markdown": "^8.0.3",
    "sharp": "^0.30.7"
  },

@bartelemi
Copy link

Duplicate of #509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants