Unable to run with node-icecream package

That package relies on callsite and fs to read the file that contains your code, and I think this works differently on RunKit compared to Repl.it. Take a look at this thread: Getting a handle to __filename/current script?