-
Notifications
You must be signed in to change notification settings - Fork 30k
Description
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.