• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

Uncaught ReferenceError: SystemJS is not defined이 뜹니다

20.06.10 11:20 작성 조회수 518

4

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>FirstApp</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <script src="https://unpkg.com/systemjs/dist/system.js"></script>
  <script>
    SystemJS.config({
      baseURL:'/first-app/sec/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-brower.js'
      }
    });
    SystemJS.import('main.js');
  </script>  

</head>
<body>
  <app-root>Loading...</app-root>
</body>
</html>

답변 3

·

답변을 작성해보세요.

2

wjd4067261님의 프로필

wjd4067261

2020.06.17

저도 같은 문제가 발생합니다ㅠㅠ 혹시 해결하셨나요??

ordinexis님의 프로필

ordinexis

2021.07.12

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

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

0

ordinexis님의 프로필

ordinexis

2021.07.12

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

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

0

hp670k님의 프로필

hp670k

2020.09.02

'/f irst-app/sec/module'  -> '/f irst-app/src/module'