Skip to content

styled_components__WEBPACK_IMPORTED_MODULE_0__.article is not a function #38

Open
@lavaldi

Description

@lavaldi

Hi 👋 I've installed this package on my project but is throwing an error:

TypeError: styled_components__WEBPACK_IMPORTED_MODULE_0__.article is not a function
    at Module../node_modules/normalized-styled-components/dist/normalized-styled-components.mjs (normalized-styled-components.mjs:1)
    at __webpack_require__ (bootstrap:782)
    at fn (bootstrap:150)
    at Object../src/common/InputText/styled.tsx (styled.tsx:8)
    at __webpack_require__ (bootstrap:782)
    at fn (bootstrap:150)
    at Object../src/common/InputText/index.tsx (index.tsx:25)
    at __webpack_require__ (bootstrap:782)
    at fn (bootstrap:150)
    at Object../stories/common/InputText/InputText.tsx (InputText.tsx:4)

Implementation:

import styled from 'styled-components';
import { Input as InputNormalized } from 'normalized-styled-components';

export const Input = styled(InputNormalized)`
  ...
`;

styled-components version: 4.2.0
node version: 10.15.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions