Skip to content

Could not find a declaration file for module 'glicko2.ts' #117

Open
@pechera

Description

@pechera

Could not find a declaration file for module 'glicko2.ts'. 'C:/project/node_modules/glicko2.ts/dist/index.mjs' implicitly has an 'any' type.
Try npm i --save-dev @types/glicko2.ts if it exists or add a new declaration (.d.ts) file containing `declare module 'glicko2.ts';

glicko2.ts: 1.3.2,

Environment:
node: v18.16.0
ts-node: 10.9.1,
typescript: 5.1.6

My tsconfig.json:

{
"compilerOptions": {
"strict": false,
"esModuleInterop": true,
"target": "es2022",
"lib": ["ES5", "ES6", "ES2022"],
"module": "NodeNext",
"noImplicitAny": true,
"resolveJsonModule": true,
"allowJs": true,
"inlineSourceMap": true,
"removeComments": true,
"forceConsistentCasingInFileNames": true,
"rootDir": "./src",
"outDir": "./build",
"skipLibCheck": true
},
"ts-node": {
"esm": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "build"],
"lib": ["ESNext", "ES2022"]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions