I am working on a project using nextjs and my screen is showing maths is not defined, how do i solve it
I tried importing but it didn’t work
I am working on a project using nextjs and my screen is showing maths is not defined, how do i solve it
I tried importing but it didn’t work
2
Answers
You may have a typo in the variable or function name or an incorrect import statement.
However, you can use the mathjs library to perform mathematical operations in your Next.js project.
Try reinstalling mathjs and ensure that you’re importing it properly.
Also make sure there are no typos. Its "math.evaluate" and not "maths.evaluate"
For different usecase:
If you want to render math expressions instead, try using "Ketex".
Here is an example on how to use it:
You can visit their website to learn more.