dgreene1 / react-accessible-treeview

A react component that implements the treeview pattern as described by the WAI-ARIA Authoring Practices.
https://dgreene1.github.io/react-accessible-treeview
MIT License
261 stars 37 forks source link

Cannot find module 'classnames' #172

Closed garciabruno closed 8 months ago

garciabruno commented 8 months ago

Describe the bug Clean install of the package, using the Basic Example, React crashes with the error Cannot find module 'classnames']

It was solved by adding classnames as a dependency in my own project. Seems odd as it is listed as a peerDependency

Code That Causes The Issue Basic example from docs

To Reproduce Steps to reproduce the behavior:

  1. Clean install

Expected behavior To work?

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

dgreene1 commented 8 months ago

This isn’t a problem with the library. You’ll find your answer documented here https://github.com/npm/cli/issues/4934#issuecomment-1413032794 and in various stack overflow answers. Closing the issue since you should be able to get help with your issue elsewhere and since it’s not reproducible.