-
-
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
PropTypes not working #627
Comments
Is this in a production build? They are removed during https://github.com/developit/preact-cli/blob/master/src/lib/babel-config.js#L28 |
@lukeed This issue occurs in development mode. The statements and Digging deeper it seems like |
have you tried importing |
@ForsakenHarmony yep, switching to the react import doesn't help although the webpack config points to it being aliased to Stepping through with a debugger it looks like the |
Turns out that this is an issue with our Closing the issue here because it is not an issue with |
Do you want to request a feature or report a bug?
Bug
What is the current behaviour?
PropType functions are never called
If the current behaviour is a bug, please provide the steps to reproduce.
Using the
default
preact-cli template:What is the expected behaviour?
Prop-Type validation should be called.
If this is a feature request, what is motivation or use case for changing the behaviour?
Please mention other relevant information.
The text was updated successfully, but these errors were encountered: