Inferno: CDN builds missing reference to PropTypes

Created on 11 Jan 2017  路  3Comments  路  Source: infernojs/inferno

I'm trying to use inferno + inferno-compat via a cdn:

https://cdn.jsdelivr.net/g/[email protected](inferno.js+inferno-component.js+inferno-create-element.js+inferno-create-class.js+inferno-compat.js

but it's complaining about missing PropTypes which is an undefined reference.

Uncaught TypeError: Cannot use 'in' operator to search for 'default' in undefined

at

PropTypes = 'default' in PropTypes ? PropTypes['default'] : PropTypes;

of inferno-compat because global.PropTypes, which is equiv to window.PropTypes, is undefined. This comes from not compiling proptypes into the dist build.

bug

All 3 comments

Hey. Thanks for reporting this issue. I Will look into it later today.

Hey,

propTypes will be bundled together with inferno-compat in next release. Sorry for this issue. Closing.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Silviu-Marian picture Silviu-Marian  路  5Comments

brenr picture brenr  路  3Comments

mohammedzamakhan picture mohammedzamakhan  路  3Comments

oleksiibilous picture oleksiibilous  路  5Comments

dessalines picture dessalines  路  4Comments