Skip to content

๐Ÿ› npx sequelize db:migrate ํ•  ๋•Œ babel version errorย #14

@tastekim

Description

@tastekim

์—๋Ÿฌ ๋‚ด์šฉ

ERROR: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of 
@babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this 
error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel. (While 
processing preset: "/Users/tastekim/Desktop/study/u-wreckcar-be/node_modules/@babel/preset-env/lib/index.js")

  • commonjs ๊ฐ€ ์•„๋‹Œ es6 ๋กœ ์ž‘์„ฑํ•˜๋‹ค๋ณด๋‹ˆ sequelize init ์„ ํ•˜๋ฉด์„œ ์ƒ๊ธฐ๋Š” config๋‚˜ models ๊ฐ€ commonjs ๋กœ ์ƒ๊ฒจ์„œ es6 ๋กœ ๋‹ค์‹œ ์ˆ˜์ •
  • babel ์„ ์‚ฌ์šฉํ•ด์„œ ์‹คํ–‰์‹œํ‚ค๋Š”๋ฐ ๋ฒ„์ „ ์—๋Ÿฌ๊ฐ€ ๋œธ
  • ๋‚ด์šฉ์œผ๋กœ ๋ณด๋ฉด package.json ์—๋„ ์ „ํ˜€ ๋ฌธ์ œ์—†๋Š”๋ฐ ์ž๊พธ ์•ˆ๋งž๋Š”๋‹ค๊ณ  ๋ฐ”๋ณด๊ฐ™์ด ๊ตผ

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions