@TheLLspectre wrote:
Hi everyone,
I work on project on Ionic, currently i’m on Microsoft Visual Studio 2017, and i’ve this error:TypeError: fs_1.readFileSync is not a function
at Object. (http://localhost:8100/build/main.js:30178:21)
at Object. (http://localhost:8100/build/main.js:30267:30)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at new RaspiIO (http://localhost:8100/build/main.js:129577:15)
at Object. (http://localhost:8100/build/main.js:61263:9)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object.module.exports (http://localhost:8100/build/main.js:95109:75)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:95037:73)
at webpack_require (http://localhost:8100/build/main.js:20:30)This error came after some different fix with this code in TypeScript:
import five from 'johnny-five'; import Raspi from 'raspi-io'; import { debounce } from 'lodash.debounce'; const board = new five.Board({ io: new Raspi() });
Just for information, i’m working with johnny-five and raspi-io, and the objective is to put the solution in the raspberry at the end!
Do you have some ideas to fix it ??
Posts: 1
Participants: 1