Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
¿Por qué css no se puede cargar en React sino solo en Next.js?

Tenemos un componente, que está en un submódulo Git, porque NExt.js y React también lo están usando. En NextJs todo está bien, pero para React, no acepta cómo se carga CSS:

 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

¿Que esta mal aquí? css está en el lugar correcto

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

En reaccionar simplemente lo importas como
import "../../styles/buyTicket.module.css";

Luego, en su elemento className se define como vanilla html
<div className="class"></div>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!