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

TypeError: Class extends value undefined is not a constructor or null #5

Open
arkanoid87 opened this issue Sep 12, 2022 · 0 comments
Open

Comments

@arkanoid87
Copy link

arkanoid87 commented Sep 12, 2022

I'm trying to convert test.ts containing single function

function add(a: number, b: number): number {
    return a + b;
}
console.log(add(6, 1))

eslint test.ts
tsc test.ts

run without error/warnings.

but I'm getting following error with ts2nim

ts2nim -i test.ts -i test.nim

/home/jack/projects/ts_experiments/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/CLIEngine.js:12
class CLIEngine extends eslint_1.CLIEngine {
                                 ^

TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (/home/jack/projects/ts_experiments/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/CLIEngine.js:12:34)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1028:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/jack/projects/ts_experiments/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/index.js:14:14)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
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