Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

typescript .dts file problem #30

@GameScrub

Description

@GameScrub

in [at-loader] ./ClientApp/components/NavMenu.tsx:3:23 TS7016: Could not find a declaration file for module 'react-smooth-scrollbar'. 'C:/Projects/GameScrubs/GameScrubs.Web/node_modules/react-smooth-scrollbar/dist/react-smooth-scrollbar.js' implicitly has an 'any' type. Try npm install @types/react-smooth-scrollbarif it exists or add a new declaration (.d.ts) file containingdeclare module 'react-smooth-scrollbar';``

if I run npm install @types/react-smooth-scrollbar or add it to packages.config I get

ERROR in [at-loader] ./ClientApp/components/NavMenu.tsx:3:8 TS1192: Module '"C:/Projects/GameScrubs/GameScrubs.Web/node_modules/@types/react-smooth-scrollbar/index"' has no default export.

Any ideas on how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions