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

173
Views
Node.js not recognizing documents in JavaScript

I am trying to make an interactive form that is running on an HTTP server and using HTML, JavaScript, and CSS files. I have connected my app.js file to my script.js using the required method and module.exports. The error that is happening is that upon the use of the node app.js command an error that shows that the document object is not recognized shows up. Now I think that this may be caused by the app.js file reading the script.js file because of the required statement but I only want to export a single function and not read through the entire script.js file.

Error:

enter image description here

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!