plopjs / plop

Consistency Made Simple
http://plopjs.com
MIT License
7.18k stars 280 forks source link

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

Open JulSeb42 opened 1 week ago

JulSeb42 commented 1 week ago

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