Skip to content

Can't install types for typescript #31

@xXCole-DOTXx

Description

@xXCole-DOTXx

I ran yarn add react-aws-s3 which installed "react-aws-s3": "^1.5.0" however when trying to import S3 import S3 from 'react-aws-s3'; I get the error Could not find a declaration file for module 'react-aws-s3'. 'c:/Users/e096752/Documents/Cole's Git Repos/CyberpunkAPI/frontend/node_modules/react-aws-s3/dist/react-aws-s3.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-aws-s3if it exists or add a new declaration (.d.ts) file containingdeclare module 'react-aws-s3';ts(7016). So I tried to install the types; yarn add @types/react-aws-s3 which results in the error: error An unexpected error occurred: "https://registry.yarnpkg.com/@types%2freact-aws-s3: Not found". info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\e096752\\Documents\\Cole's Git Repos\\CyberpunkAPI\\frontend\\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

I have attached the error log as the error instructed.

yarn-error.log

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