-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Module build failed: Error: Couldn't find preset "es2015" relative to directory ".../nextgram/pages" #643
Comments
I still have this problem. What am I doing wrong? |
@victorkane I solved it by updating Nodejs to its latest version. Requires Nodejs v5 up as far as I can tell. |
On my Mac, I updated to Node 6.9.3 LTS and:
Free to close issue |
I still have this problem, none of the above tricks did it.
|
Fix: Removed (hidden) .babelrc (global?) file from "/Users/nikolai". |
I want to confirm that solution from previous comment works for me. I tried different fixes but issue didn't disappear. But this one resolved problem. Thanks hegelstad.
|
I had the same problem as @hegelstad and @Ihor912, and removing a |
I had the same issue... |
Hi. I installed Next.js for the first time to test and when I run "npm run dev" it gives me the following error:
Module build failed: Error: Couldn't find preset "es2015" relative to directory "/Users/gabriel/Developing/nextgram/pages" at /Users/gabriel/Developing/nextgram/node_modules/next/node_modules/babel-core/lib/transformation/file/options/option-manager.js:299:19 at Array.map (native) at OptionManager.resolvePresets (/Users/gabriel/Developing/nextgram/node_modules/next/node_modules/babel-core/lib/transformation/file/options/option-manager.js:270:20) at OptionManager.mergePresets (/Users/gabriel/Developing/nextgram/node_modules/next/node_modules/babel-core/lib/transformation/file/options/option-manager.js:259:10) at OptionManager.mergeOptions (/Users/gabriel/Developing/nextgram/node_modules/next/node_modules/babel-core/lib/transformation/file/options/option-manager.js:244:14) at OptionManager.init (/Users/gabriel/Developing/nextgram/node_modules/next/node_modules/babel-core/lib/transformation/file/options/option-manager.js:374:12) at File.initOptions (/Users/gabriel/Developing/nextgram/node_modules/next/node_modules/babel-core/lib/transformation/file/index.js:216:65) at new File (/Users/gabriel/Developing/nextgram/node_modules/next/node_modules/babel-core/lib/transformation/file/index.js:139:24) at Pipeline.transform (/Users/gabriel/Developing/nextgram/node_modules/next/node_modules/babel-core/lib/transformation/pipeline.js:46:16) at transpile (/Users/gabriel/Developing/nextgram/node_modules/next/node_modules/babel-loader/lib/index.js:41:20)
I tried the example application "nextgram" and it turns out to give the same error.
Regards.
The text was updated successfully, but these errors were encountered: