Closed dghelm closed 6 months ago
Well, tsup
seems happier with everything. If anyone else runs into this, try using it instead of tsc
.
Here is the command in package.json
:
"dev": "tsup src/main.ts --watch --onSuccess \"node dist/main.cjs\"",
Really happy to stumble across this project while wrestling with the official Notion SDK in ts.
Unfortunately, though, I can't get my project configurations correct to build my project with the generated code. I'm not sure if it's
NodeNext
or something else, but files are not linking -- I think because the lack of explicit file extensions. That said, even after adding.js
to imports throughout, I'm getting a lot of errors about implicit 'any' type.Would love an example project or similar to just use as a template even.
Config:
And an excerpt of the errors: