-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Closed
Labels
TypeScriptRelated to types with Next.js.Related to types with Next.js.bugIssue was opened via the bug report template.Issue was opened via the bug report template.create-next-appRelated to our CLI tool for quickly starting a new Next.js application.Related to our CLI tool for quickly starting a new Next.js application.
Description
Link to the code that reproduces this issue
https://github.com/stefanprobst/issue-next-no-unchecked-side-effect-imports
To Reproduce
- clone repo and install dependencies
pnpm tsc --noEmit- see error message:
app/layout.tsx:3:8 - error TS2307: Cannot find module './globals.css' or its corresponding type declarations.
3 import "./globals.css";
Current vs. Expected behavior
should support typescript option noUncheckedSideEffectImports (introduced in v5.6)
probably needs .d.ts for .css imports
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #202403151937 SMP PREEMPT_DYNAMIC Fri Mar 15 19:52:22 UTC 2024
Available memory (MB): 31401
Available CPU cores: 16
Binaries:
Node: 22.8.0
npm: 10.8.2
Yarn: 1.22.22
pnpm: 9.9.0
Relevant Packages:
next: 14.2.11 // Latest available version is detected (14.2.11).
eslint-config-next: N/A
react: 18.3.1
react-dom: 18.3.1
typescript: 5.6.2
Next.js Config:
output: N/AWhich area(s) are affected? (Select all that apply)
create-next-app, TypeScript
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response
Metadata
Metadata
Assignees
Labels
TypeScriptRelated to types with Next.js.Related to types with Next.js.bugIssue was opened via the bug report template.Issue was opened via the bug report template.create-next-appRelated to our CLI tool for quickly starting a new Next.js application.Related to our CLI tool for quickly starting a new Next.js application.