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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -