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

jsxgraph 1.4.4 lib Error: [TypeScript 3.7] Cannot find name 'XXXXX' #116

Open
sonygod opened this issue Jun 11, 2022 · 1 comment
Open

Comments

@sonygod
Copy link

sonygod commented Jun 11, 2022

jsxgraph 1.4.4 lib Error: [TypeScript 3.7] Cannot find name 'XXXXX'

I try to convert jsxgraph lib ,got these error

> Error: [TypeScript 3.7] Cannot find name 'z'. (D:/projects/jsxgraph/node_modules/jsxgraph/distrib/index.d.ts:110:50)
> Error: [TypeScript 3.7] Cannot find name 'x'. (D:/projects/jsxgraph/node_modules/jsxgraph/distrib/index.d.ts:110:61)
> Error: [TypeScript 3.7] Cannot find name 'y'. (D:/projects/jsxgraph/node_modules/jsxgraph/distrib/index.d.ts:110:72)
> Error: [TypeScript 3.7] Cannot find name 'x'. (D:/projects/jsxgraph/node_modules/jsxgraph/distrib/index.d.ts:110:86)
> Error: [TypeScript 3.7] Cannot find name 'y'. (D:/projects/jsxgraph/node_modules/jsxgraph/distrib/index.d.ts:110:97)
> Error: [TypeScript 3.7] Cannot find name 'z'. (D:/projects/jsxgraph/node_modules/jsxgraph/distrib/index.d.ts:122:17)
....

and I try to downlevel-dts ? how to work with dts2hx?

when I put this to ./node_modules/jsxgraph/package.json

  "typesVersions": {
    "<4.0": { "*": ["ts3.4/*"] }
  }

and got this error.

   Error: Failed to find typescript for module "jsxgraph". Searched the following paths:
@vladimirvelikov
Copy link
Contributor

Despite the errors, the externs should be present in the .haxelib directory next to the node_modules directory of your project.

You can add them via -cp .haxelib/jsxgraph/1,4,5 (1.4.5 is the current version, yours might be different).

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