jiggzson / nerdamer

a symbolic math expression evaluator for javascript
http://www.nerdamer.com
MIT License
514 stars 82 forks source link

unable to import anything but core node.js #632

Open jackel89 opened 3 years ago

jackel89 commented 3 years ago

i have tried every possible combination of ways to import this that i can think of trying and still cant get any functionality beyond the core.

please help

jackel89 commented 3 years ago

to clarify i am trying to use the npm package in node js

jiggzson commented 3 years ago

Try const nerdamer = require("nerdamer/all.min"). This was documented in the quick start section of the site but nowhere else. I'll update the documentation.

jackel89 commented 3 years ago

i have tried that and scoured the web for someone experiencing the same problem and a solution. this is the error in vs code:

Could not find a declaration file for module 'nerdamer/all.min'. 'C:/file/node_modules/nerdamer/all.min.js' implicitly has an 'any' type. Try npm i --save-dev @types/nerdamer if it exists or add a new declaration (.d.ts) file containing declare module 'nerdamer/all.min';ts(7016)

jackel89 commented 3 years ago

ive also tried messing with the index and doing what this recommends to no avail

jackel89 commented 2 years ago

this still doesnt work can anyone help?

jackel89 commented 2 years ago

please can anyone help? if its a simple modification to the index.d.ts file it seems like you should be able to just give the exact example in the readme for people like me who use javascript and dont know ts or c++