반응형
1. 오류 증상
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from .....
2. 원인
nodejs 버전에 맞지 않아서 생긴 오류 => nodejs 버전 최소 14.18.0 필요
3.해결
nodejs 16.xx 버전대로 설치하여 해결
반응형
'소프트웨어 개발 > Vue' 카테고리의 다른 글
vue vite, yarn - alias 경로(path) 설정 (0) | 2023.04.09 |
---|---|
윈도우 10/11 vue - yarn으로 vite 프로젝트 설정 (0) | 2023.04.09 |
[Vue 3] should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`. 해결방법 (0) | 2021.12.27 |
댓글