Skip to content

Getting error x is not a function because of package from node_modules #461

Description

@JulSeb42

Hello,

I'm starting to get a bug (which didn't happen before but I didn't touch anything) when running a command to generate a component:

[PLOP] Something went wrong with reading your plop file TypeError: u.h1 is not a function

I'm guessing this comes from node_modules since there's no u.h1 inside my app. When I go to this u.h1 I'm getting a file with styled-components

How can I fix / ignore those errors? This is my current code (I use TypeScript only):
https://github.com/JulSeb42/julseb-lib-react

EDIT:
I see this error only when generators are imported from another file

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