Open
Description
Hey @Quramy
I run into following error when try to use this lib via programatic API
$ node scripts/types.mjs
.../css/scripts/types.mjs:5
const creator = new DtsCreator();
^
TypeError: DtsCreator is not a constructor
at file:///Users/anton.dozortsev/Documents/Wise/code/neptune-web/packages/css/scripts/types.mjs:5:17
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:526:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
error Command failed with exit code 1.
I also tried following
const creator = DtsCreator();
creator.create('.../../file.css').then((content) => {
but it doesn't work
.../css/scripts/types.mjs:5
const creator = DtsCreator();
^
TypeError: DtsCreator is not a function
any change you could help, e.g point out what could be wrong, I'm happy to contribute 🙂
Metadata
Metadata
Assignees
Labels
No labels