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

144
Views
Next js named imports with no SSR

I need to convert this line to next.js dynamic import and also without SSR

import { widget } from "./charting_library/charting_library";

I have tried this one

const widget = dynamic(() => import("./charting_library/charting_library").then((mod) => mod.widget), {
    ssr: false
});

This seems not the correct way and also charting_libray.js file is a compiled js file in a previous project.

enter image description here

Is the problem is my importing method or the js file? If this is importing method how do I fix this?

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

0

const { widget } = await import("./charting_library/charting_library")

Maybe something along those lines might work? As for the SSR side I am not sure if you would need to execute it within a useEffect.

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!