react-toolbox / react-toolbox-themr

A tool to statically extract and generate custom themes for React Toolbox
MIT License
240 stars 24 forks source link

Can't import Checkbox #26

Closed ralvs closed 7 years ago

ralvs commented 7 years ago

Failed to compile. Error in ./~/react-toolbox/lib/checkbox/Checkbox.js Module not found: 'react-style-proptype' in /Volumes/stuff/reactSpher.toolbox/node_modules/react-toolbox/lib/checkbox

@ ./~/react-toolbox/lib/checkbox/Checkbox.js 20:26-57

I'm getting this error when try to import Checkbox or Table (that uses checkbox). Other components are working fine.

My package.json

"reactToolbox": { "include": [ "CHECKBOX", "AUTOCOMPLETE", "BUTTON", "CARD", "DATE_PICKER", "DIALOG", "DRAWER", "DROPDOWN", "INPUT", "LAYOUT", "LINK", "LIST", "MENU", "NAVIGATION", "OVERLAY", "PROGRESS_BAR", "RADIO", "RIPPLE", "SLIDER", "SNACKBAR", "SWITCH", "TABLE", "TABS", "TOOLTIP" ], "output": "src/styles/react-toolbox" },

lc1983 commented 7 years ago

Try add react-style-proptype module: yarn add react-style-proptype.

ralvs commented 7 years ago

Awesome! Checkbox is working! But I still have problems with table.

Warning: Unknown propsmodel,sourceon <table> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop

javivelasco commented 7 years ago

Sorry about it @ralves09 the deployed documentation is for the 1.x version. Please check the component READMEs in the dev branch to see the current docs for Table

ralvs commented 7 years ago

Nice! It's working now! Thanks!