failed to load config from \vite.config.ts
error when starting dev server:
file:////node_modules/@vitejs/plugin-vue/dist/index.mjs:3
import { shallowRef, computed } from 'vue';
^^^^^^^^
SyntaxError: The requested module 'vue' does not provide an export named 'computed'
at ModuleJob._instantiate (internal/modules/esm/module_job.js:104:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:149:5)
at async Loader.import (internal/modules/esm/loader.js:166:24)
에러내용 : SyntaxError: The requested module 'vue' does not provide an export named 'computed'
해결:
node 버전이 21.x.x (최신 버전)이었는데, 16으로 다운그레이드 하니 정상 실행 되었다
intelliJ Terminal에서
nvm install 16.18.1
nvm use 16.18.1
이후 정상 동작함.
'DEV > ERROR' 카테고리의 다른 글
[IntelliJ] Multiple build operations failed. Could not move temporary workspace (0) | 2024.10.25 |
---|