Error reported only in node_modules
directory
#58128
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
π Search Terms
TS7016, node_modules
π Version & Regression Information
β― Playground Link
No response
π» Code
package.json
index.js
not_node_modules/
not_node_modules/sub/
not_node_modules/sub/source.js
not_node_modules/sub/type.d.ts
cd testcase/
npm install
cp -r not_node_modules/sub/ node_modules/
npx tsc --noEmit --checkJs --strict index.js
π Actual behavior
π Expected behavior
No error. Or 2 errors with
node_modules/sub/type.d.ts
andnot_node_modules/sub/type.d.ts
Additional information about the issue
The two imported directories (
not_node_modules/sub/type.d.ts
andnode_modules/sub/type.d.ts
) are identical, but TypeScript only reports an error for the file in thenode_modules
directory.I have this problem in my projects. TypeScript doesn't report an error in Metalint (the sub-project). But when I import it into Cast Kodi, TypeScript reports the error.
metalint
level.js
(βsub/source.js
)level.d.ts
(βsub/type.d.ts
)castkodi
metalint.config.js
(βindex.js
)The text was updated successfully, but these errors were encountered: