-1

i'm trying to run my script file on node and it's showing this error everytime i try to run using nodemon

ReferenceError: document is not defined

any fixes for this to run the DOM on node???

i was trying to run a front end file with script file in the backend using nodemon and it gives this bug everytime

Ronit
  • 1
  • 1
    Could you explain what exactly are you trying to accomplish? – Ilija Vuk Aug 05 '23 at 18:05
  • 1
    Why would Node.js need a DOM? It's not a browser, it's a general purpose programming language and standard library API. You're going to have to explain [in your post](/help/how-to-ask) what you're doing that leads to this error, because it's entirely possible that what you're doing isn't necessary, or, might not even make sense to do given what you're trying to achieve. – Mike 'Pomax' Kamermans Aug 05 '23 at 18:07

0 Answers0