close
The Wayback Machine - https://web.archive.org/web/20201031042518/https://github.com/reactjs/express-react-views/issues/140
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3" #140

Closed
informvisu opened this issue May 7, 2019 · 3 comments
Closed

Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3" #140

informvisu opened this issue May 7, 2019 · 3 comments

Comments

@informvisu
Copy link

@informvisu informvisu commented May 7, 2019

  • Downloaded examples/dynamic into a separate folder
  • Removed express-react-views dependency from package.json
  • Did npm install and npm install express-react-views
  • Ran npm start

Seeing the following error

C:\Users\vis\Desktop\express-react-views\dynamic>npm start

> dynamic-views@0.1.0 start C:\Users\vis\Desktop\express-react-views\dynamic
> browserify -t babelify views/main.js --standalone main -o public/main.js  && node app.js

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: "C:\\Users\\vis\\Desktop\\express-react-views\\dynamic\\node_modules\\@babel\\preset-react\\lib\\index.js") while parsing file: C:\Users\vis\Desktop\express-react-views\dynamic\views\main.js
@informvisu informvisu changed the title examples/dynamic error with Content Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3" May 8, 2019
@RadoslavK
Copy link

@RadoslavK RadoslavK commented May 27, 2019

npm install --save-dev babelify @babel/core

@informvisu
Copy link
Author

@informvisu informvisu commented May 27, 2019

package.json already having those. Attached the code. Could you give it a try? My node version is v10.9.0

dynamic.zip

@RadoslavK
Copy link

@RadoslavK RadoslavK commented May 28, 2019

My node -v is 10.15.3 and I have removed those from package.json and let npm install based on the command. Then it worked.

@zpao zpao closed this in 8fdfa85 Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.