• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

Uncaught ReferenceError: SystemJS is not defined

21.04.04 18:15 작성 조회수 312

1

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>ToDo</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <script src="https://unpkg.com/systemjs/dist/system.js"></script>
  <script>
    SystemJS.config({
      baseURL: '/toDo/src/module',
      transpiler: 'plugin-babel',
      map : {
        'plugin-babel' : 'https://unpkg.com/systemjs-plugin-babel/plugin-babel.js',
        'systemjs-babel-build' : 'https://unpkg.com/systemjs-plugin-babel/systemjs-babel-browser.js'
      }
    });
    SystemJS.import('main.js');
  </script>
</head>
<body>
  <app-root>Lodaing</app-root>
</body>
</html>
강의 내용대로 작성했는데 SystemJS를 못 찾는다고 나오네요 ㅠㅠㅠ
뭐가 잘못된 걸까요??

답변 2

·

답변을 작성해보세요.

0

ordinexis님의 프로필

ordinexis

2021.07.12

SystemJS 최신버전에선 강의에서 사용된 함수 호출에 문제가 있어 보입니다.
0.21.5 버전을 사용해 보세요.

<script src="https://unpkg.com/systemjs@0.21.5/dist/system.js"></script>

0

dudn1933님의 프로필

dudn1933

2021.06.19

원인을 해결하셨나요?

ordinexis님의 프로필

ordinexis

2021.07.12

SystemJS 최신버전에선 강의에서 사용된 함수 호출에 문제가 있어 보입니다.
0.21.5 버전을 사용해 보세요.

<script src="https://unpkg.com/systemjs@0.21.5/dist/system.js"></script>