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

277
Views
Intellisense doesn't work when I import the module from a cdn. vscode

I was importing three js this way:

import { WebGLRenderer } from 'three';

and the auto complete works fine (image 1).

But when I import from a cdn:

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

The auto complete doesnt works (image 2)

image 1: image 1

image 2: image 2

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

0

For this you'll need to install @types/three.
Then you can use jsconfig.json to alias https://cdn.skypack.dev/* to @types/*, because this way vscode / typescript knows how to interpret these urls.

jsconfig.json:

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

More about this: 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!