In an .mjs file, you do not use require. You use import. Try:
import fs from "fs";
More info:
https://nodejs.org/api/esm.html
-John
On Sun, Jun 7, 2020, 9:33 AM Matthew Hamilton wrote:
> node.js 14.4.0 macOS Catalina, Visual Studio Code debugging. Line 11 in my
> app.mjs file is var
Hey could you help me design a peer to peer chat using socket.io . Where I
can restrict and decide who can chat with whom.
On Wednesday, 3 June 2020 23:50:30 UTC+5:30, Al Mo wrote:
>
> Hello everybody,
>
> Due to COVID I have plenty of time on my hands nowadays, I would like to
> contribute
Yes if you like,
There ia my facebook profile:
https://www.facebook.com/dress.aitmoulay.9
Thanks.
On Thu, Jun 4, 2020, 22:21 Mahmood Sakr wrote:
> Hello
> Can we chatting through fb
>
> On Wed, 3 Jun 2020, 8:20 pm Al Mo, wrote:
>
>> Hello everybody,
>>
>> Due to COVID I have plenty of time
node.js 14.4.0 macOS Catalina, Visual Studio Code debugging. Line 11 in my
app.mjs file is var FileSystem = require('fs'); The debugger throws
"require is not defined" error on this line. Comment this line out and the
debugger throws an error on line 23 which is var PDFImage =