Open fridolinvii opened 2 years ago
Tried this instead? (just look at the starting lines, as i'm learning node and its correlatives now)
`const fs = require('fs'); // File System; const path = require('path');
const filePath = path.join('D:', 'Faculdade', 'cursoDeNode', 'MatheusBattisti', '1_INTRO', '2_usando_modulos', 'arquivo.txt') console.log(filePath);
// fs.readFile([arquivo], [syntax], [try/catch]) fs.readFile(filePath, 'utf8', (err, data) => { if (err) { console.log(err); } console.log(data); });
// Sucesso!! `
I am trying to import input in my App.js file
import input from 'input';
However I get the following issue:
Module not found: Error: Can't resolve 'fs' in './node_modules/readline'
I already tried