본문 바로가기
카테고리 없음

[typeorm]에러 해결

by devebucks 2022. 12. 26.
728x90

에러

(node:53648) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use `node --trace-warnings ...` to show where the warning was created) /Users/lt04/Project/clone-raddit/server/src/server.ts:37 import exrpess from "express"; ^^^^^^ SyntaxError: Cannot use import statement outside a module at Object.compileFunction (node:vm:352:18) at wrapSafe (node:internal/modules/cjs/loader:1032:15)

728x90

댓글