inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[리뉴얼] React로 NodeBird SNS 만들기

_app.js와 Head

잘 따라하다가 막혔습니다.

해결된 질문

253

뽀식이

작성한 질문수 4

0

Error: Must use import to load ES Module: D:\eclipse2020\workspace\zerocho\prepare\front\node_modules\@babel\runtime\helpers\esm\extends.js
require() of ES modules is not supported.
require() of D:\eclipse2020\workspace\zerocho\prepare\front\node_modules\@babel\runtime\helpers\esm\extends.js from D:\eclipse2020\workspace\zerocho\prepare\front\node_modules\antd\lib\affix\index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename extends.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from D:\eclipse2020\workspace\zerocho\prepare\front\node_modules\@babel\runtime\helpers\esm\package.json.
 
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
Object.Module._extensions..js
internal/modules/cjs/loader.js (1080:13)
Module.load
internal/modules/cjs/loader.js (928:32)
Function.Module._load
internal/modules/cjs/loader.js (769:14)
Module.require
internal/modules/cjs/loader.js (952:19)
require
internal/modules/cjs/helpers.js (88:18)
Object.<anonymous>
file:///D:/eclipse2020/workspace/zerocho/prepare/front/node_modules/antd/lib/affix/index.js (12:40)
Module._compile
internal/modules/cjs/loader.js (1063:30)
Object.Module._extensions..js
internal/modules/cjs/loader.js (1092:10)
Module.load
internal/modules/cjs/loader.js (928:32)
Function.Module._load
internal/modules/cjs/loader.js (769:14)

갑자기 에러 메세지를 내뿜네요 그리고 원래 지금까지

import React from 'react'; 구문 페이지마다 안써도 됐었는데 뭘 건드린건지 갑자기 저걸 안넣으면 페이지에서 에러표시를 띄우네요 d에디터는 이클립스 입니다.

internal/modules/cjs/loader.js (769:14)

nodejs redux express react Next.js

답변 1

1

제로초(조현영)

https://github.com/ant-design/ant-design/issues/28804

이 에러인데 ant design에서 곧 해결할 것 같습니다.

넥스트 버젼 질문

0

75

2

로그인시 401 Unauthorized 오류가 뜹니다

0

88

1

무한 스크롤 중 스크롤 튐 현상

0

172

1

특정 페이지 접근을 막고 싶을 때

0

103

2

createGlobalStyle의 위치와 영향범위

0

93

2

인라인 스타일 리렌더링 관련

0

90

2

vsc 에서 npm init 설치시 오류

0

146

2

nextjs 15버전 사용 가능할까요?

0

158

1

화면 새로고침 문의

0

119

1

RTK에서 draft, state 차이가 있나요?

0

151

2

Next 14 사용해도 될까요?

0

452

1

next, node 버전 / 폴더 구조 질문 드립니다.

0

348

1

url 오류 질문있습니다

0

210

1

ssh xxxxx로 우분투에 들어가려니까 port 22: Connection timed out

0

372

1

sudo certbot --nginx 에러

0

1271

2

Minified React error 콘솔에러 (hydrate)

0

469

1

카카오 공유했을 때 이전에 작성했던 글이 나오는 버그

0

245

1

프론트서버 배포 후 EADDRINUSE에러 발생

0

325

1

npm run build 에러

0

517

1

front 서버 npm run build 중에 발생한 에러들

0

381

1

서버 실행하고 브라우저로 들어갔을때 404에러

0

335

2

css 서버사이드 랜더링이 적용되지 않아서 문의 드립니다.

0

283

1

팔로워 3명씩 불러오고 데이터 합쳐주는걸로 바꾸고 서버요청을 무한으로하고있습니다.

0

235

2

해시태그 검색에서 throttle에 관해 질문있습니다.

0

198

1