[에러노트] timeago 라이브러리 오류

Wonny·2023년 2월 3일
1

에러노트

목록 보기
6/6
  • timeago 설치 후 아래와 같은 WARNING 발생
  • 실행하는데 문제는 없으나 해당 WARNING이 왜 발생하는지는 모르겠음
Compiled with warnings.

Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/format.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/format.ts'

Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/index.ts'

Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/lang/en_US.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/lang/en_US.ts'

Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/lang/zh_CN.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/lang/zh_CN.ts'

Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/realtime.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/realtime.ts'

Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/register.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/register.ts'

Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/utils/date.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/utils/date.ts'

Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/utils/dom.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/utils/dom.ts'

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

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 '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/format.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/format.ts'

WARNING in ./node_modules/timeago.js/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/index.ts'

WARNING in ./node_modules/timeago.js/esm/lang/en_US.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/lang/en_US.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/lang/en_US.ts'

WARNING in ./node_modules/timeago.js/esm/lang/zh_CN.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/lang/zh_CN.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/lang/zh_CN.ts'

WARNING in ./node_modules/timeago.js/esm/realtime.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/realtime.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/realtime.ts'

WARNING in ./node_modules/timeago.js/esm/register.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/register.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/register.ts'

WARNING in ./node_modules/timeago.js/esm/utils/date.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/utils/date.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/utils/date.ts'

WARNING in ./node_modules/timeago.js/esm/utils/dom.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/utils/dom.ts' file: Error: ENOENT: no such file or directory, open '/Users/wonny/Documents/dev/KDT3-react-toyproject/react-youtube-clone/node_modules/timeago.js/src/utils/dom.ts'

webpack compiled with 8 warnings
  • 문제이유
    npx create-react-app으로 시작할 경우 생기는 문제
  • 해결
    env.local 파일에 GENERATE_SOURCEMAP=false 추가하기
profile
프론트엔드 개발자를 꿈꾸며

1개의 댓글

comment-user-thumbnail
2023년 6월 1일

I can't fix this error, help me!

답글 달기