#461·plop

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

Author: JulSeb42Created Nov 20, 2024Updated Nov 21, 2024

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:

bash
[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