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

161
Views
Next js dynamic imports with object destucturing

import { UDFCompatibleDatafeed } from "./datafeeds/udf/src/udf-compatible-datafeed.js";

I need to convert the above import to the next js dynamic import. So I tried this way

const UDFCompatibleDatafeed = dynamic(() => import("./datafeeds/udf/src/udf-compatible-datafeed.js").UDFCompatibleDatafeed);

UDFCompatibleDatafeed is a javascript class.

I am getting an error

TypeError: UDFCompatibleDatafeed is not a constructor

Seems this is not importing correctly.

How do I fix this?

about 4 years ago · Juan Pablo Isaza
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!