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

"lib" vite import error #62

Open
jamtycle opened this issue Apr 27, 2024 · 1 comment
Open

"lib" vite import error #62

jamtycle opened this issue Apr 27, 2024 · 1 comment

Comments

@jamtycle
Copy link

jamtycle commented Apr 27, 2024

Issue Description

importing "solid-icons/lib" using vite (import { CustomIcon } from 'solid-icons/lib';) yields [vite] Internal server error: Missing "./lib" specifier in "solid-icons" package.

image

An export may be missing on the lib package.

Edit:

It appears that import { CustomIcon } from 'solid-icons'; does work, it will be greatly appreciated a change in the README Custom Icon example to avoid confusion. 😄 👍🏼

package.json

{
  "name": "vite-template-solid",
  "version": "0.0.0",
  "description": "",
  "scripts": {
    "start": "vite --host",
    "dev": "vite",
    "build": "vite build",
    "serve": "vite preview"
  },
  "license": "MIT",
  "devDependencies": {
    "typescript": "^5.1.3",
    "vite": "^4.3.9",
    "vite-plugin-solid": "^2.7.0"
  },
  "dependencies": {
    "solid-icons": "^1.1.0",
    "solid-js": "^1.7.6"
  }
}

Reproduction Link

https://stackblitz.com/edit/github-3drhwq-q9vwbm?file=src%2FApp.tsx

@emin-alizada
Copy link

Thank you for the fix!

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

No branches or pull requests

2 participants