interact.js icon indicating copy to clipboard operation
interact.js copied to clipboard

Cannot find module '@interactjs/interactjs/index' or its corresponding type declarations.

Open robertrachita opened this issue 1 year ago • 3 comments

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

robertrachita avatar Sep 09 '24 07:09 robertrachita

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

fivaz3 avatar Nov 29 '24 01:11 fivaz3

		"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.

robertrachita avatar Nov 29 '24 10:11 robertrachita

Did you find fix for this issue? I also have same issue, when i migrate my angular version from 8 to 19.1.

athira-inapp avatar Feb 21 '25 17:02 athira-inapp