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

227
Views
How can we use ES6 modules in Node program without "type" : "module" in package.json?

I have a server (implemented with NodeJS), and a client (implemented using Vue, compiled with vue-cli) that share some code. The problem is that Vue does not support "type": "module" option, and I cannot run both programs without getting an error from one side or another.

I'm wondering: is that passobile, and how can we use ES6 modules in a NodeJS script, without specifying "type": "module" inside the package.json file ?

Thanks

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I have finally found a workaround: using esm nodejs package: https://www.npmjs.com/package/esm

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!