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 module '@interactjs/interactjs/index' or its corresponding type declarations. #1050

Open
robertrachita opened this issue Sep 9, 2024 · 2 comments

Comments

@robertrachita
Copy link

In a TypeScript project, when trying to compile, i get the following error:

index.d.ts(2,22): error TS2307: Cannot find module '@interactjs/interactjs/index' or its corresponding type declarations.

System configuration
interactjs version: 1.10.27
operating system: debian 11
npm version: 10.7.0
node: 18.20.4
typescript: 4.9.5

@fivaz3
Copy link

fivaz3 commented Nov 29, 2024

at least post your tsconfig.json. each typescript project operates differently based on the tsconfig.json

@robertrachita
Copy link
Author

robertrachita commented Nov 29, 2024

		"newLine": "LF",
		"noImplicitAny": true,
		"noImplicitThis": true,
		"strict": true,
		"strictNullChecks": false,
		"target": "ES2022",
		"module": "ES2022",
		"outDir": "./build",
		"declaration": false,
		"baseUrl": ".",
		"paths": {
			"project-name/*":["ts/src/*"]
		},
		"types": [
			"d3",
			"dropzone",
			"jquery",
			"jquery.cookie",
			"jqueryui",
			"jstree",
			"ol",
			"easymde",
		]
	},
	"include": [
		"./ts/src/**/*.ts",
		"./module/**/*.ts"
	],
}

In my project, this is the only package that throws any errors simply by being installed and imported into a file.

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