Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

Module dont import in react #7

@rortegac

Description

@rortegac

I have a problem when i trying to import the module in my code. When i do this:

import React from 'react';
import WeatherIcons from 'react-weathericons';

const WeatherTemperature = ({ temperature, weatherState }) => (
    <div>
        <WeatherIcons name="cloud" size="2x" />
        <span>{`${temperature} Cº`}</span>
    </div>
);

The code report an error with react-weathericons module. It says that i need @types for de modole or the file .d.ts. When i create this file the error disappears, but the icons are still not show.

Node Version: 8.11.4
npm Version: 5.6.0

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