-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
preact build --json fails with TypeError: c.getModules is not a function
#467
Comments
I'm also getting this |
This looks a lot like a regression that occurred between 2.1.0 and 2.1.1 Current workaround: downgrade to react-cli 2.1.0 |
Yup, seems like |
Guessing you'd just remove the whole ternary operator and just replace it with |
|
Do you want to request a feature or report a bug?
bug
What is the current behaviour?
preact build --json
fails withTypeError: c.getModules is not a function
If the current behaviour is a bug, please provide the steps to reproduce.
I made sure I have latest preact-cli and webpack, etc. I created a new preact-cli app with
preact create default my-project
ranpreact build --json
got error.What is the expected behaviour?
to actually output build stats json file
Please mention other relevant information.
v9.4.0
5.6.0
MacOS 10.13.2 (17C205)
3.10.0
preact-cli 2.1.1
The text was updated successfully, but these errors were encountered: