-
-
Notifications
You must be signed in to change notification settings - Fork 148
PropTypes not longer works? #321
Comments
the only way for this to even work anymore is to send the alias directly at /dist/index.js or else all types of other errors and problems arise with untranspiled code... but targeting /dist/index.js directly to fit this now fails to work with PropTypes using the standard import methods.
this works fine but now every package that uses react has to be modified to do it this way which kind of defeats the entire purpose of this, no? |
If you do not alias directly to /dist/preact-compat.js ( i see you changed that from .index which breaks the previous working option) then it does not work at all anymore... however you can not add that file this way when using react-dom otherwise that doesnt work
that is when my alias is { 'react': 'preact-compat', 'react-dom': 'preact-compat' } If I change 'react' to { 'react': 'preact-compat/dist/preact-compat.js' } then most of those errors go away but if I set react-dom to that then it breaks again but if i set react-dom to just preact-compat then I can not get render anymore so this is simply not really compatible out of the box with webpack 2 yet? It seems that if i add
to my package.json it resolves the issues. |
Same problem here since v3.14.0. v3.13.1 works pretty well. |
@koellcode @bradennapier yikes! looks like something must have gone wrong with the build, which we changed here. Will fix this morning. I believe this repro is hitting the same issue. |
I updated and now I cant seem to use ProPTypes?
The text was updated successfully, but these errors were encountered: