support typescript option noUncheckedSideEffectImports
#70165
stefanprobst
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
@stefanprobst Since this isn't really a 🐛 with Next.js, I have converted this to a discussion. You can also just add the needed file. |
Beta Was this translation helpful? Give feedback.
2 replies
-
If doing the same for react vite app will resolve the "Unknown compiler option 'noUncheckedSideEffectImports'." issue ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Link to the code that reproduces this issue
https://github.com/stefanprobst/issue-next-no-unchecked-side-effect-imports
To Reproduce
pnpm tsc --noEmit
Current vs. Expected behavior
should support typescript option
noUncheckedSideEffectImports
(introduced in v5.6)probably needs
.d.ts
for.css
importsProvide 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/A
Which 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
Beta Was this translation helpful? Give feedback.
All reactions