Package
Version
1.0.0-rc.0
Can you reproduce this in the latest version?
Browser
Operating system
Description
I have installed lucide-react@next ([email protected]) and imported some icons, e.g.
import { Search } from 'lucide-react'
When building the project with Vite 8.0.1, I get the following error:
Error: Error during dependency optimization:
Build failed with 1 error:
[MISSING_EXPORT] Error: "LucideProvider" is not exported by "../../node_modules/lucide-react/dist/esm/context.js".
╭─[ ../../node_modules/lucide-react/dist/esm/lucide-react.js:1695:10 ]
│
1695 │ export { LucideProvider, useLucideContext } from './context.js';
│ ───────┬──────
│ ╰──────── Missing export
──────╯
This seems correct. Looking at node_modules/lucide-react/dist/esm/lucide-react.js line 1695:
export { LucideProvider, useLucideContext } from './context.js';
but looking at node_modules/lucide-react/dist/esm/context.js, there is only:
export { useLucideContext };
that is, no LucideProvider export.
Steps to reproduce
- Install
lucide-react@next
- Import any icon
- Run
vite
- Observe the error
Note: It works fine on 0.577.0!
Checklist
Package
Version
1.0.0-rc.0
Can you reproduce this in the latest version?
Browser
Operating system
Description
I have installed
lucide-react@next([email protected]) and imported some icons, e.g.When building the project with Vite 8.0.1, I get the following error:
This seems correct. Looking at
node_modules/lucide-react/dist/esm/lucide-react.jsline 1695:but looking at
node_modules/lucide-react/dist/esm/context.js, there is only:that is, no
LucideProviderexport.Steps to reproduce
lucide-react@nextviteNote: It works fine on 0.577.0!
Checklist