Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

styled_components__WEBPACK_IMPORTED_MODULE_0__.article is not a function #38

Open
lavaldi opened this issue May 24, 2019 · 0 comments
Open

Comments

@lavaldi
Copy link

lavaldi commented May 24, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant