codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

The React TypeScript template crashes when you attempt to compose CSS modules from different files

Open Santiago-j-s opened this issue 1 year ago • 0 comments

🐛 bug report

Preflight Checklist

  • [x] I have read the Contributing Guidelines for this project.
  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Description of the problem

If you create a new react codesandbox by using the react ts template, it crashes if you try to compose css modules from different files

To Reproduce

Create a new React project and set up two CSS module files. In the second file, define a new class by composing one of the classes from the first file.

Next, attempt to utilize a class from the second file in any React component.

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Browser Firefox 131.0b7
Operating System MacOS 14.6.1 (23G93)

Santiago-j-s avatar Sep 22 '24 17:09 Santiago-j-s