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

153
Views
Openslyers import error in Angular component

I have installed openlayers to my angular 12 project.

npm install ol

and

npm install --save @types/ol

But when I import in home component:

  import Map from 'ol/Map';

throws exception:

Error: node_modules/ol/ImageBase.d.ts:32:48 - error TS2694: 
 Namespace '"C:/Dev/my-app/node_modules/ol/ImageState"' has no exported 
member 'default'.

 protected state: import("./ImageState.js").default;     
 protected state: import("./TileState.js").default;
 protected layout: import("./GeometryLayout.js").default;
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

One solution is updating tsconfig.json.

In tsconfig.json file at the compilerOptions object add "skipLibCheck": true.

This will resolve the issue.

over 4 years ago · Santiago Trujillo 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!