We are currently experiencing an issue with a component located in a Git Submodule that is being used by both Next.js and React. While everything is functioning correctly in Next.js, React is unable to accept the way the CSS is being loaded:
import styles from "../../styles/buyTicket.module.css";
[tsl] ERROR in /Applications/MAMP/htdocs/wp-content/plugins/tikex/tikexModule/components/BuyTicket/PricingOptionInvoiceItemsFormFieldsCheckboxes.tsx(7,20)
TS2307: Cannot find module '../../styles/buyTicket.module.css' or its corresponding type declarations.
@ ./app/containers/Tiket/Test.tsx 2:0-148 36:88-133
@ ./app/containers/Test.jsx 3:0-32 6:44-48
@ ./app/shortcode35.js 8:0-46 14:54-63
What could be the issue here? The CSS file is in the correct location.