Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run dev: ts extension error #14

Open
suenot opened this issue Aug 12, 2023 · 1 comment
Open

npm run dev: ts extension error #14

suenot opened this issue Aug 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@suenot
Copy link
Member

suenot commented Aug 12, 2023

Describe the bug

Expected Behavior

Current Behavior

root@vmi1342668:~/js-docker-isolation-provider# npm run dev

@deep-foundation/js-docker-isolation-provider@0.0.8 dev
nodemon index.ts

[nodemon] 2.0.20
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): imports/**/* index.ts
[nodemon] watching extensions: ts
[nodemon] starting ts-node ./index.ts index.ts
TypeError: Unknown file extension ".ts" for /root/js-docker-isolation-provider/index.ts
at new NodeError (node:internal/errors:393:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
at defaultGetFormat (node:internal/modules/esm/get_format:121:38)
at defaultLoad (node:internal/modules/esm/load:81:20)
at nextLoad (node:internal/modules/esm/loader:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:605:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:63:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:480:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34)
[nodemon] app crashed - waiting for file changes before starting...

Steps to reproduce

  1. clone repo
  2. npm i
  3. npm run dev

Environment

Tested on ubuntu 22:
root@vmi1342668:/js-docker-isolation-provider# node -v
v18.12.1
root@vmi1342668:
/js-docker-isolation-provider# npm -v
8.19.2

and on macos 13.0.1 (22A400):
root@vmi1342668:/js-docker-isolation-provider# node -v
v18.12.1
root@vmi1342668:
/js-docker-isolation-provider# npm -v
8.19.2

@suenot suenot added the bug Something isn't working label Aug 12, 2023
@suenot
Copy link
Member Author

suenot commented Aug 13, 2023

Pull request: #16 Вместе с Archer обновили ts-node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant