nerdamer icon indicating copy to clipboard operation
nerdamer copied to clipboard

unable to import anything but core node.js

Open jackel89 opened this issue 2 years ago • 6 comments

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 avatar Sep 09 '21 06:09 jackel89

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

jackel89 avatar Sep 09 '21 11:09 jackel89

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.

jiggzson avatar Sep 09 '21 20:09 jiggzson

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 avatar Sep 11 '21 08:09 jackel89

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

jackel89 avatar Sep 11 '21 08:09 jackel89

this still doesnt work can anyone help?

jackel89 avatar Oct 24 '21 16:10 jackel89

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++

jackel89 avatar Oct 24 '21 16:10 jackel89