You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a component, which is not in a resulting webpack bundle, then css-modules-typescript-loader does not produce corresponding .scss.d.ts which is correct, since the .scss is not running through the webpack pipeline.
However, ts-loader anyway reports error for this file (Cannot find module './Component.module.scss') and breaks the webpack build. Is it possible to somehow exclude unused components from build?
The text was updated successfully, but these errors were encountered:
s-KaiNet
changed the title
Cannot find module './Component.module.scss'
Cannot find module './Component.module.scss' and unused components
May 17, 2021
If I have a component, which is not in a resulting webpack bundle, then
css-modules-typescript-loader
does not produce corresponding.scss.d.ts
which is correct, since the.scss
is not running through the webpack pipeline.However, ts-loader anyway reports error for this file (
Cannot find module './Component.module.scss'
) and breaks the webpack build. Is it possible to somehow exclude unused components from build?The text was updated successfully, but these errors were encountered: