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

Cannot find name 'A' / '$Args'. #172

Closed
Marty opened this issue Aug 28, 2021 · 2 comments
Closed

Cannot find name 'A' / '$Args'. #172

Marty opened this issue Aug 28, 2021 · 2 comments

Comments

@Marty
Copy link

Marty commented Aug 28, 2021

Hi,

I just started using Javelin and get this error when transpiling my ts code.

{
	"resource": "/home/xx/Documents/sandbox/xx/xx/node_modules/@javelin/ecs/dist/cjs/effects/web/json.d.ts",
	"owner": "typescript",
	"code": "2304",
	"severity": 8,
	"message": "Cannot find name 'A'.",
	"source": "ts",
	"startLineNumber": 2,
	"startColumn": 99,
	"endLineNumber": 2,
	"endColumn": 99
}

same on request.d.ts.

I downgraded to javelin 0.22.0.
Before I used 1.0.0-alpha4 where I got basically the same error only that it was $Args instead of A.
Am I doing something wrong? I am new to Typescript and still learning as I go.

My tsconfig.json

{
    "compilerOptions": {
        "experimentalDecorators": true,
        "target": "es2016",
        "module": "commonjs",
        "outDir": "./dist",
        "inlineSourceMap": true,
        "esModuleInterop": true,
        "strict": true
    }
}
@3mcd
Copy link
Owner

3mcd commented Aug 28, 2021

This appears to be related to microsoft/TypeScript#42079. It's a bit over my head, but a fix is scheduled to be scheduled with TypeScript 4.4.1, so we'll check back in then.

@Marty
Copy link
Author

Marty commented Aug 29, 2021

In the meantime, the workaround with "skipLibCheck": true in my tsconfig.json works.

@3mcd 3mcd closed this as completed Jun 16, 2022
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

2 participants