JacobLinCool / JacobLinCool/piconvert
TypeError: Piconvert is not a constructor (In Module)
- Dominant language
- TypeScript
- Stars
- 8
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Got the following error
```
/var/www/typescript/converter/convert.js:3
const converter = new Piconvert().import("pdf").export("svg").export("png", [128, 256, "256x128", "x512"]);
^
TypeError: Piconvert is not a constructor
at Object. (/var/www/typescript/converter/convert.js:3:19)
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
```
Currently in node v17.8 but same in v15.8 too
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with convert.js line 3 and inspect how Piconvert is imported and exported by the package. Reproduce the constructor error under the reported Node versions, then confirm the conversion chain runs without throwing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100