Hi, following the readme for the installation on Debian 12 I ran in some issues during the installation:
- Same problem as Issue#40, I add a comment with a workaround
- After building the server and when trying to start it, I found two issue. The first one regarding
p-limit
> server@1.0.0 start
> node dist/server.js
const p_limit_1 = __importDefault(require("p-limit"));
^
Error [ERR_REQUIRE_ESM]: require() of ES Module SillyInnkeeper/server/node_modules/p-limit/index.js from SillyInnkeeper/server/dist/services/scan.js not supported.
Instead change the require of index.js in SillyInnkeeper/server/dist/services/scan.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (SillyInnkeeper/server/dist/services/scan.js:11:35)
at Object.<anonymous> (SillyInnkeeper/server/dist/routes/api/cards.js:15:16)
at Object.<anonymous> (SillyInnkeeper/server/dist/routes/api/index.js:10:33)
at Object.<anonymous> (illyInnkeeper/server/dist/app.js:13:31)
at Object.<anonymous> (SillyInnkeeper/server/dist/server.js:4:15) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.20.4
and almost the same for chokidar:
> server@1.0.0 start
> node dist/server.js
const chokidar_1 = __importDefault(require("chokidar"));
^
Error [ERR_REQUIRE_ESM]: require() of ES Module SillyInnkeeper/server/node_modules/chokidar/index.js from SillyInnkeeper/server/dist/services/fs-watcher.js not supported.
Instead change the require of index.js in SillyInnkeeper/server/dist/services/fs-watcher.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (SillyInnkeeper/server/dist/services/fs-watcher.js:8:36)
at Object.<anonymous> (SillyInnkeeper/server/dist/app.js:16:22)
at Object.<anonymous> (illyInnkeeper/server/dist/server.js:4:15) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.20.4
I was able to resolve installing the specific version via NPM:
npm install p-limit@3.1.0 --save-exact
and
npm install chokidar@3.6.0 --save-exact
Hi, following the readme for the installation on Debian 12 I ran in some issues during the installation:
p-limitand almost the same for
chokidar:I was able to resolve installing the specific version via NPM:
and