lucide-icons / lucide

Beautiful & consistent icon toolkit made by the community. Open-source project and a fork of Feather Icons.
https://lucide.dev
ISC License
8.94k stars 380 forks source link

Module '"lucide-react"' has no exported member 'Notebook'.ts(2305) #2138

Closed CayllahuaPedro closed 1 week ago

CayllahuaPedro commented 1 week ago

Package

Version

0.378.0

Can you reproduce this in the latest version?

Browser

Operating system

Description

import {
  ActivitySquareIcon,
  FileUpIcon,
  LayoutDashboardIcon,
  BadgeDollarSign,
  Contact,
  Users,
  LayoutPanelLeft,
  Notebook,
} from "lucide-react";

when I tried to import some icons from the lucide-react package I got the next error: Module '"lucide-react"' has no exported member 'Notebook'.ts(2305). Needles to say I looked in forums for similar problems. specifically I tried to downgrade to 0.263.0 version but that didn't work.

Steps to reproduce

  1. install latest version 1.import 'notebook' icon 2.get the error

Checklist

karsa-mistmere commented 1 week ago

I cannot reproduce this issue, can you make sure an earlier version isn't stuck in some kind of cache and you're actually using v0.378.0, which definitely has this export?

(.next cache, node_modules etc)

CayllahuaPedro commented 1 week ago

I have version 0.378 both in package.json and pnpm-lock.yaml . I tried looking into the cache but vs code wont read it

karsa-mistmere commented 1 week ago

Can you check if node_modules/lucide-react/dist/esm/notebook.js exists?

As for any cache, you shouldn't be looking into it, but clearing it (since you haven't provided any extra information about your frameworks, I cannot help you with how that should be done, but if it's next.js for example, you may try deleting the entire .next folder, same goes for node_modules, especially if the export above isn't there).

You may also run [p]npm ls lucide-react to see if you maybe have some conflicting dependencies.