I have troubles using Amplitude with React and Typescript. Is anyone else using this?
How do you import Amplitude and initialise correctly?
When using
import amp from 'amplitude-js';
I get a type error about a missing default export.
TS7016: Could not find a declaration file for module 'amplitude-js'. '[shortened]/node_modules/amplitude-js/amplitude.js' implicitly has an 'any' type.
Thank you.