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

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

Open
JulSeb42 opened this issue Nov 20, 2024 · 0 comments
Open

Comments

@JulSeb42
Copy link

JulSeb42 commented Nov 20, 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:

[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

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