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

278
Views
Intellisense no funciona cuando importo el módulo desde un cdn. vscode

Estaba importando tres js de esta manera:

 import { WebGLRenderer } from 'three';

y el autocompletar funciona bien (imagen 1).

Pero cuando importo desde un cdn:

 import { WebGLRenderer } from 'https://cdn.skypack.dev/three';

No funciona el autocompletar (imagen 2)

imagen 1:imagen 1

imagen 2:imagen 2

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

0

Para esto necesitarás instalar @types/three .
Luego puede usar jsconfig.json para alias https://cdn.skypack.dev/* a @types/* , porque de esta manera vscode/typescript sabe cómo interpretar estas URL.

jsconfig.json :

 { "compilerOptions": { "baseUrl": ".", "paths": { "https://cdn.skypack.dev/*": ["./node_modules/@types/*"] } } }

Más sobre esto: https://www.typescriptlang.org/tsconfig#paths

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!