hustcc / timeago.js

:clock8: :hourglass: timeago.js is a tiny(2.0 kb) library used to format date with `*** time ago` statement.
https://timeago.org
MIT License
5.29k stars 411 forks source link

Error: ENOENT: no such file or directory, open 'E:\Projects\Code-Crafters\node_modules\timeago.js\src\format.ts' #267

Closed soham1300 closed 5 months ago

soham1300 commented 11 months ago

How to solve this error show on terminal :

WARNING in ./node_modules/timeago.js/esm/format.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from 'E:\Projects\Code-Crafters\node_modules\timeago.js\src\format.ts' file: Error: ENOENT: no such file or directory, open 'E:\Projects\Code-Crafters\node_modules\timeago.js\src\format.ts'

kimch321 commented 10 months ago

In my case, I resolved it by adding GENERATE_SOURCEMAP=false to the .env.local file and then restarting the server.

kboul commented 7 months ago

@kimch321 it works, thanks, but why is this required?