Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module './Component.module.scss' and unused components #44

Open
s-KaiNet opened this issue May 17, 2021 · 0 comments
Open

Comments

@s-KaiNet
Copy link

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?

@s-KaiNet s-KaiNet changed the title Cannot find module './Component.module.scss' Cannot find module './Component.module.scss' and unused components May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant