콘텐츠로 건너뛰기
» babel

babel

How to resolve regeneratorRuntime is not defined

개요

React 를 사용해서 작성된 잘 동작하던 웹 응용프로그램이 아래와 같은 메시지를 출력하고, 멈춰버렸습니다.

regeneratorRuntime is not defined

환경

개발환경

  • node.js v14.16.0
  • npm v.7.6.3

패키지

  • @babel/core v7.13.15

해결

babel-plugin-transform-runtime#why 페이지에서 이유와 어떻게 해야되는지 설명하고 있습니다.

babel-plugin-transform-runtime#technical-details 페이지에서 자세한 기술적 설명을 …