René's URL Explorer Experiment


Title: Module resolution: noUncheckedSideEffectImports doesn't resolve CSS-only node_modules with globals.d.ts · Issue #62674 · microsoft/TypeScript · GitHub

Open Graph Title: Module resolution: noUncheckedSideEffectImports doesn't resolve CSS-only node_modules with globals.d.ts · Issue #62674 · microsoft/TypeScript

X Title: Module resolution: noUncheckedSideEffectImports doesn't resolve CSS-only node_modules with globals.d.ts · Issue #62674 · microsoft/TypeScript

Description: Demo Repo https://github.com/jdufresne/typescript-nouncheckedsideeffectimports Which of the following problems are you reporting? The module specifier resolves to the right file, but something about the types are wrong Demonstrate the de...

Open Graph Description: Demo Repo https://github.com/jdufresne/typescript-nouncheckedsideeffectimports Which of the following problems are you reporting? The module specifier resolves to the right file, but something abou...

X Description: Demo Repo https://github.com/jdufresne/typescript-nouncheckedsideeffectimports Which of the following problems are you reporting? The module specifier resolves to the right file, but something abou...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/62674

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Module resolution: noUncheckedSideEffectImports doesn't resolve CSS-only node_modules with globals.d.ts","articleBody":"### Demo Repo\n\nhttps://github.com/jdufresne/typescript-nouncheckedsideeffectimports\n\n### Which of the following problems are you reporting?\n\nThe module specifier resolves to the right file, but something about the types are wrong\n\n### Demonstrate the defect described above with a code sample.\n\n`globals.d.ts`:\n\n```ts\ndeclare module \"*.css\";\n```\n\n`index.ts`:\n\n```ts\nimport \"@fontsource/roboto\";\n```\n\n### Run `tsc --showConfig` and paste its output here\n\n```\n$ npx tsc --showConfig\n{\n    \"compilerOptions\": {\n        \"skipLibCheck\": true,\n        \"noUncheckedSideEffectImports\": true\n    },\n    \"files\": [\n        \"./globals.d.ts\",\n        \"./index.ts\"\n    ]\n}\n```\n\n### Run `tsc --traceResolution` and paste its output here\n\n```\n$ npx tsc --traceResolution\n======== Resolving module './index.css' from '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.ts'. ========\nModule resolution kind is not specified, using 'Node10'.\nLoading module as file / folder, candidate module location '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css', target file types: TypeScript, Declaration.\nFile name '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css' has a '.css' extension - stripping it.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.d.css.ts' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css.ts' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css.tsx' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css.d.ts' does not exist.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css' does not exist, skipping all lookups in it.\nLoading module as file / folder, candidate module location '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css', target file types: JavaScript.\nFile name '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css' has a '.css' extension - stripping it.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css.js' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css.jsx' does not exist.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.css' does not exist, skipping all lookups in it.\n======== Module name './index.css' was not resolved. ========\n======== Resolving module '@fontsource/roboto' from '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/index.ts'. ========\nModule resolution kind is not specified, using 'Node10'.\nLoading module '@fontsource/roboto' from 'node_modules' folder, target file types: TypeScript, Declaration.\nSearching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.\nFound 'package.json' at '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/package.json'.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto.ts' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto.tsx' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto.d.ts' does not exist.\n'package.json' does not have a 'typesVersions' field.\n'package.json' does not have a 'typings' field.\n'package.json' does not have a 'types' field.\n'package.json' has 'main' field 'index.css' that references '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css'.\nFile name '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css' has a '.css' extension - stripping it.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.d.css.ts' does not exist.\nLoading module as file / folder, candidate module location '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css', target file types: TypeScript, Declaration.\nFile name '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css' has a '.css' extension - stripping it.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.d.css.ts' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css.ts' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css.tsx' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css.d.ts' does not exist.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css' does not exist, skipping all lookups in it.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.ts' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.tsx' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.d.ts' does not exist.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/home/jon/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nLoading module '@fontsource/roboto' from 'node_modules' folder, target file types: JavaScript.\nSearching all ancestor node_modules directories for fallback extensions: JavaScript.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/package.json' exists according to earlier cached lookups.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto.js' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto.jsx' does not exist.\n'package.json' has 'main' field 'index.css' that references '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css'.\nFile name '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css' has a '.css' extension - stripping it.\nLoading module as file / folder, candidate module location '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css', target file types: JavaScript.\nFile name '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css' has a '.css' extension - stripping it.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css.js' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css.jsx' does not exist.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css' does not exist, skipping all lookups in it.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.js' does not exist.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.jsx' does not exist.\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nDirectory '/node_modules' does not exist, skipping all lookups in it.\nResolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update.\nLoading module '@fontsource/roboto' from 'node_modules' folder, target file types: TypeScript, Declaration.\nSearching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/package.json' exists according to earlier cached lookups.\nEntering conditional exports.\nSaw non-matching condition 'sass'.\nMatched 'exports' condition 'default'.\nUsing 'exports' subpath '.' with target './index.css'.\nFile name '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.css' has a '.css' extension - stripping it.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@fontsource/roboto/index.d.css.ts' does not exist.\nFailed to resolve under condition 'default'.\nExiting conditional exports.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/home/jon/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\nDirectory '/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'fontsource__roboto'\n======== Module name '@fontsource/roboto' was not resolved. ========\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/lib/package.json' does not exist.\nFound 'package.json' at '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/package.json'.\n======== Resolving module '@typescript/lib-es5' from '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========\nExplicitly specified module resolution kind: 'Node10'.\nLoading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.\nSearching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-es5'\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-es5'\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-es5'\nDirectory '/home/jon/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-es5'\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-es5'\nDirectory '/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-es5'\nLoading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.\nSearching all ancestor node_modules directories for fallback extensions: JavaScript.\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nDirectory '/node_modules' does not exist, skipping all lookups in it.\n======== Module name '@typescript/lib-es5' was not resolved. ========\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/lib/package.json' does not exist according to earlier cached lookups.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/package.json' exists according to earlier cached lookups.\n======== Resolving module '@typescript/lib-decorators' from '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========\nExplicitly specified module resolution kind: 'Node10'.\nLoading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.\nSearching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators'\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators'\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators'\nDirectory '/home/jon/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators'\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators'\nDirectory '/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators'\nLoading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.\nSearching all ancestor node_modules directories for fallback extensions: JavaScript.\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nDirectory '/node_modules' does not exist, skipping all lookups in it.\n======== Module name '@typescript/lib-decorators' was not resolved. ========\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/lib/package.json' does not exist according to earlier cached lookups.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/package.json' exists according to earlier cached lookups.\n======== Resolving module '@typescript/lib-decorators/legacy' from '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========\nExplicitly specified module resolution kind: 'Node10'.\nLoading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.\nSearching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators/legacy'\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators/legacy'\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators/legacy'\nDirectory '/home/jon/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators/legacy'\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators/legacy'\nDirectory '/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-decorators/legacy'\nLoading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.\nSearching all ancestor node_modules directories for fallback extensions: JavaScript.\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nDirectory '/node_modules' does not exist, skipping all lookups in it.\n======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/lib/package.json' does not exist according to earlier cached lookups.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/package.json' exists according to earlier cached lookups.\n======== Resolving module '@typescript/lib-dom' from '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========\nExplicitly specified module resolution kind: 'Node10'.\nLoading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.\nSearching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-dom'\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-dom'\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-dom'\nDirectory '/home/jon/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-dom'\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-dom'\nDirectory '/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-dom'\nLoading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.\nSearching all ancestor node_modules directories for fallback extensions: JavaScript.\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nDirectory '/node_modules' does not exist, skipping all lookups in it.\n======== Module name '@typescript/lib-dom' was not resolved. ========\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/lib/package.json' does not exist according to earlier cached lookups.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/package.json' exists according to earlier cached lookups.\n======== Resolving module '@typescript/lib-webworker/importscripts' from '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========\nExplicitly specified module resolution kind: 'Node10'.\nLoading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.\nSearching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-webworker/importscripts'\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-webworker/importscripts'\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-webworker/importscripts'\nDirectory '/home/jon/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-webworker/importscripts'\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-webworker/importscripts'\nDirectory '/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-webworker/importscripts'\nLoading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.\nSearching all ancestor node_modules directories for fallback extensions: JavaScript.\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nDirectory '/node_modules' does not exist, skipping all lookups in it.\n======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/lib/package.json' does not exist according to earlier cached lookups.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/package.json' exists according to earlier cached lookups.\n======== Resolving module '@typescript/lib-scripthost' from '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========\nExplicitly specified module resolution kind: 'Node10'.\nLoading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.\nSearching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.\nDirectory '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-scripthost'\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-scripthost'\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-scripthost'\nDirectory '/home/jon/node_modules/@types' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-scripthost'\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-scripthost'\nDirectory '/node_modules' does not exist, skipping all lookups in it.\nScoped package detected, looking in 'typescript__lib-scripthost'\nLoading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.\nSearching all ancestor node_modules directories for fallback extensions: JavaScript.\nDirectory '/home/jon/devel/jdufresne/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/jon/devel/node_modules' does not exist, skipping all lookups in it.\nDirectory '/home/node_modules' does not exist, skipping all lookups in it.\nDirectory '/node_modules' does not exist, skipping all lookups in it.\n======== Module name '@typescript/lib-scripthost' was not resolved. ========\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/lib/package.json' does not exist according to earlier cached lookups.\nFile '/home/jon/devel/jdufresne/typescript-nouncheckedsideeffectimports/node_modules/typescript/package.json' exists according to earlier cached lookups.\nindex.ts:2:8 - error TS2307: Cannot find module '@fontsource/roboto' or its corresponding type declarations.\n\n2 import \"@fontsource/roboto\";\n         ~~~~~~~~~~~~~~~~~~~~\n\n\nFound 1 error in index.ts:2\n```\n\n### Paste the `package.json` of the *importing* module, if it exists\n\n```json\n{\n  \"name\": \"typescript-nouncheckedsideeffectimports\",\n  \"dependencies\": {\n    \"@fontsource/roboto\": \"^5.2.8\",\n    \"typescript\": \"^5.9.3\"\n  }\n}\n```\n\n### Paste the `package.json` of the *target* module, if it exists\n\n```json\n{\n  \"name\": \"@fontsource/roboto\",\n  \"version\": \"5.2.8\",\n  \"description\": \"Self-host the Roboto font in a neatly bundled NPM package.\",\n  \"main\": \"index.css\",\n  \"publishConfig\": {\"access\": \"public\"},\n  \"keywords\": [\n    \"fontsource\",\n    \"font\",\n    \"font family\",\n    \"google fonts\",\n    \"roboto\",\n    \"Roboto\",\n    \"css\",\n    \"sass\",\n    \"front-end\",\n    \"web\",\n    \"typeface\",\n    \"variable\"\n  ],\n  \"exports\": {\n    \".\": {\"sass\": \"./index.css\", \"default\": \"./index.css\"},\n    \"./LICENSE\": \"./LICENSE\",\n    \"./*\": {\"sass\": \"./*.css\", \"default\": \"./*.css\"},\n    \"./*.css\": {\"sass\": \"./*.css\", \"default\": \"./*.css\"},\n    \"./files/*\": {\"sass\": \"./files/*\", \"default\": \"./files/*\"},\n    \"./files/*.woff\": {\"sass\": \"./files/*.woff\", \"default\": \"./files/*.woff\"},\n    \"./files/*.woff2\": {\n      \"sass\": \"./files/*.woff2\",\n      \"default\": \"./files/*.woff2\"\n    },\n    \"./package.json\": \"./package.json\",\n    \"./metadata.json\": \"./metadata.json\",\n    \"./unicode.json\": \"./unicode.json\",\n    \"./scss\": {\"sass\": \"./scss/metadata.scss\"}\n  },\n  \"author\": \"Google Inc.\",\n  \"license\": \"OFL-1.1\",\n  \"homepage\": \"https://fontsource.org/fonts/roboto\",\n  \"funding\": \"https://github.com/sponsors/ayuhito\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/fontsource/font-files.git\",\n    \"directory\": \"fonts/google/roboto\"\n  },\n  \"publishHash\": \"796e33ab906c9be2\"\n}\n```\n\n### Any other comments can go here\n\nMy goal is to enable the recommended option: `noUncheckedSideEffectImports`. The docs state to add \"an ambient module declaration with a wildcard specifier.\" I've done this; the example repository demonstrate this by importing a local \"index.css\" file. However, it isn't being applied to the CSS-only module in node_modules so it creates the error pasted above.","author":{"url":"https://github.com/jdufresne","@type":"Person","name":"jdufresne"},"datePublished":"2025-10-25T20:33:36Z","url":"https://github.com/microsoft/TypeScript/issues/62674"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a52c0236-e22d-e7a9-93d5-f56661bb4917
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC422:3F8AB1:C7814A:10136F2:6B00ED13
html-safe-nonceabd78ac0c2141ba90bebd74cbfca402e9d7a8c2b20de480f7bb7821c2c1dce4b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDIyOjNGOEFCMTpDNzgxNEE6MTAxMzZGMjo2QjAwRUQxMyIsInZpc2l0b3JfaWQiOiI2NjY3MDkwNjA3MzkzMDA4OTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac04c3443e48772f738f0ba281c381e7ea81507e5500e1c76ab7bbdbbd1934c920
hovercard-subject-tagissue:3552955750
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/62674/issue_layout
twitter:imagehttps://opengraph.githubassets.com/89770932ce76ce83bd7335588e570f0b2fe08a0d6ed1770df6d38b084d99bc3b/microsoft/TypeScript/issues/62674
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/89770932ce76ce83bd7335588e570f0b2fe08a0d6ed1770df6d38b084d99bc3b/microsoft/TypeScript/issues/62674
og:image:altDemo Repo https://github.com/jdufresne/typescript-nouncheckedsideeffectimports Which of the following problems are you reporting? The module specifier resolves to the right file, but something abou...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejdufresne
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/62674#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F62674
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F62674
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/62674
Reloadhttps://github.com/microsoft/TypeScript/issues/62674
Reloadhttps://github.com/microsoft/TypeScript/issues/62674
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/62674
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/62674
Module resolution: noUncheckedSideEffectImports doesn't resolve CSS-only node_modules with globals.d.tshttps://github.com/microsoft/TypeScript/issues/62674#top
QuestionAn issue which isn't directly actionable in codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Question%22
https://github.com/jdufresne
Jon Dufresne (jdufresne)https://github.com/jdufresne
on Oct 25, 2025https://github.com/microsoft/TypeScript/issues/62674#issue-3552955750
https://github.com/jdufresne/typescript-nouncheckedsideeffectimportshttps://github.com/jdufresne/typescript-nouncheckedsideeffectimports
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Oct 25, 2025https://github.com/microsoft/TypeScript/issues/62674#issuecomment-3447787761
Andrew Branch (@andrewbranch)https://github.com/andrewbranch
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Oct 27, 2025https://github.com/microsoft/TypeScript/issues/62674#event-20529796937
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Oct 27, 2025https://github.com/microsoft/TypeScript/issues/62674#event-20529798188
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Oct 27, 2025https://github.com/microsoft/TypeScript/issues/62674#issuecomment-3453498221
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Oct 27, 2025https://github.com/microsoft/TypeScript/issues/62674#issuecomment-3453840227
https://github.com/ayuhito
Ayu (ayuhito)https://github.com/ayuhito
on Oct 28, 2025https://github.com/microsoft/TypeScript/issues/62674#issuecomment-3456845388
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 28, 2025https://github.com/microsoft/TypeScript/issues/62674#issuecomment-3457279037
fontsource/fontsource#1086https://github.com/fontsource/fontsource/issues/1086
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Oct 28, 2025https://github.com/microsoft/TypeScript/issues/62674#event-20558178565
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
QuestionAn issue which isn't directly actionable in codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Question%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Oct 28, 2025https://github.com/microsoft/TypeScript/issues/62674#event-20558179831
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
on Oct 31, 2025https://github.com/microsoft/TypeScript/issues/62674#issuecomment-3470959904
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
not plannedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Oct 31, 2025https://github.com/microsoft/TypeScript/issues/62674#event-20623072913
microsofthttps://github.com/microsoft
on Jan 7, 2026https://github.com/microsoft/TypeScript/issues/62674#event-21905373912
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/62674
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/62674
QuestionAn issue which isn't directly actionable in codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.