phosphor-icons / react

A flexible icon family for React

Home Page:https://phosphoricons.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect exports specified in `package.json`

rektdeckard opened this issue · comments

Discussed in #95

Originally posted by diegolauar April 23, 2024
If you get this error: Failed to resolve entry for package "@phosphor-icons/react". The package may have incorrect main/module/exports specified in its package.json.

Try install: npm install phosphor-react

Use: import { . . . } from "phosphor-react"

@diegolauar can you provide some details:

  • @phosphor-icons/react version
  • Project type (pure React, Next, Astro, etc.) and version
  • Build tooling (vite, turbo, etc.) and version
  • Node version
  • Any supporting context that can help reproduce and diagnose the error