anandanand84 / technicalindicators

A javascript technical indicators written in typescript with pattern recognition right in the browser
MIT License
2.14k stars 557 forks source link

Cannot import into react #183

Closed jslok closed 4 years ago

jslok commented 5 years ago

Is there a specific method I need to use to use this in react?

I use any of the examples like so const sma = require('technicalindicators').sma; var prices = [1,2,3,4,5,6,7,8,9,10,12,13,15]; var period = 10; sma({period : period, values : prices})

I get this error: ./node_modules/@tensorflow/tfjs-data/dist/tf-data.esm.js Attempted import error: 'deprecationWarn' is not exported from '@tensorflow/tfjs-core'.

MohamedLamineAllal commented 5 years ago

Same here ! (React with typescript)

anandanand84 commented 4 years ago

Tensorflow removed as part of 3.0