DeabLabs / DeabLabs/cannoli

Baked cannolis not compatible with node v23 out of the box

Open
#60 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
TypeScript
Stars
424
Forks
37
PR merge metrics
No merged PRs in 30d

Description

We should ensure that baked cannolis can run via node v23 out of the box.

Node v23 supports typescript natively, so it would be nice to have

It does not work currently because of the following error:

```
node phoenixDocumentRefinerCoreCanvas.ts
(node:18792) ExperimentalWarning: Type Stripping is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:18792) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/tony/repos/cannolis/phoenixDocumentRefinerCoreCanvas.ts is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /Users/tony/repos/cannolis/package.json.
file:///Users/tony/repos/cannolis/phoenixDocumentRefinerCoreCanvas.ts:1
import { LLMConfig, resultsRun } from "@deablabs/cannoli-core";
^^^^^^^^^
SyntaxError: The requested module '@deablabs/cannoli-core' does not provide an export named 'LLMConfig'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:181:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:264:5)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:580:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:98:5)

Node.js v23.6.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.