I'm trying to import
error TS2304: Cannot find name 'Plotly'
import Plotly = require('plotly.js');
error TS2307: Cannot find module 'plotly.js'.
Ended up with:
declare function require(moduleName: string): any; var Plotly = require('plotly.js/lib/index-basic.js');
(Referring to index-basic.js as I need just the basic functionality, use index.js for the full library.)