'Chalk issues in NodeJS

[Yes, I know that there is another post just like this, link]
For some reason, when I use Replit for programming in Node, I can not use import. I am using replit (online IDE). In the link mentioned, the answer provided just says to use import rather than require(). However, for some reason, import does not work. I do not know why. Is there some other way besides require() or import ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source