Cannot use import statement outside a module ❗️ 게시 2022/12/02 By 1 분읽는 시간 1 <script type="module" src="./js/index.js"></script> script 부분에 type=”module” 을 적어주지 않아서 생긴 오류이다. Error error js 이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다. 공유하기