I try to include the mathjs library into my project for the atan2(). When i try to include the folder that i installed using npm install @types/mathjs by var Math = require('mathjs/main/es5/index');
it throws an error that it is moved and i have to include mathjs or mathjs/lib/cjs/index.js instead. This however does not work as well. So how do i include the mathjs library?
The file "mathjs/main/es5/index.js" has been moved since mathjs@8.0.0. Please load "mathjs" or "mathjs/lib/cjs/index.js" instead.