0
I’m trying to use the require command but this giving error, I’m trying to use in the following code:
var Parser = require('C:/Users/gabri/OneDrive/Área de Trabalho/faculdade/Supervisorio_P1/polo/teste/Scripts/node_modules/jsonparse/jsonparse.js');
var request = new XMLHttpRequest();
You’re making a mistake in the require, someone knows why?
Have you ever tried to put the path from the folder that is the file you are modifying? Because you are using the full path. It could be something like this: var Parser = require('.. /jsonparse.js');
– Luis Faconi