Skip to content

ERR_UNKNOWN_FILE_EXTENSION Installation / Build Error #326

Description

@jschappet

I'm attempting to build and install on Ubuntu 22.04.5 LTS

root@www:/opt/codexdocs# uname -an
Linux www 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

root@www:/opt/codexdocs# npm -v
10.8.2
root@www:/opt/codexdocs# node -v
v18.20.8

With 'yarn && yarn start' I get the following error:

[0] [nodemon] starting ts-node src/backend/app.ts -c docs-config.yaml -c docs-config.local.yaml
[0] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /opt/codexdocs/src/backend/app.ts
[0] at new NodeError (node:internal/errors:405:5)
[0] at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:136:11)
[0] at defaultGetFormat (node:internal/modules/esm/get_format:182:36)
[0] at defaultLoad (node:internal/modules/esm/load:101:20)
[0] at nextLoad (node:internal/modules/esm/hooks:864:28)
[0] at load (/opt/codexdocs/node_modules/ts-node/dist/child/child-loader.js:19:122)
[0] at nextLoad (node:internal/modules/esm/hooks:864:28)
[0] at Hooks.load (node:internal/modules/esm/hooks:447:26)
[0] at MessagePort.handleMessage (node:internal/modules/esm/worker:196:24)
[0] at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) {
[0] code: 'ERR_UNKNOWN_FILE_EXTENSION'
[0] }
[0] [nodemon] app crashed - waiting for file changes before starting...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions