typescript - Module '...' resolves to a non-module entity and cannot be imported using this construct -


i have .tsx file in trying import raisedbutton component material-ui so:

import * raisedbutton 'material-ui/lib/raised-button' 

however, gives me error described in title, ideas might doing wrong?

this material-ui.d.ts file.

export import raisedbutton = __materialui.raisedbutton; // require('material-ui/lib/raised-button'); 

so should import this.

import raisedbutton = require('material-ui/lib/raised-button'); 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -