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 #8

Open
Konard opened this issue Sep 3, 2024 · 0 comments
Open

npm run dev: ts extension error #8

Konard opened this issue Sep 3, 2024 · 0 comments

Comments

@Konard
Copy link
Member

Konard commented Sep 3, 2024

Describe the bug

Expected Behavior

Current Behavior

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

@deep-foundation/[email protected] 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


Forked from deep-foundation/js-docker-isolation-provider#14 by https://github.com/konard/gh-org-migrator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant