-2
I’m studying Nextjs and used the npm create-next-app command to create a next template, but when I use the npm run dev command, which should open the application on port 3000, localhost:3000 returns "Internal Server Error", and the terminal returns a number of errors.
Terminal errors:
warn - C:/Users/familia/Desktop/Guilherme/Projetos/NLW5/podcastrnext/node_modules/@babel/runtime/helpers/interopRequireDefault.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers: * C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\@babel\runtime\helpers\interopRequireDefault.js
Used by 4 module(s), i. e.
C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\@next\react-refresh-utils\loader.js!C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\next\dist\build\webpack\loaders\next-babel-loader.js??ref--4-1!C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\next\dist\client\router.js * C:\users\familia\desktop\guilherme\projetos\nlw5\podcastrnext\node_modules\@babel\runtime\helpers\interopRequireDefault.js
Used by 10 module(s), i. e.
C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\@next\react-refresh-utils\loader.js!C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\next\dist\build\webpack\loaders\next-babel-loader.js??ref--4-1!C:\users\familia\desktop\guilherme\projetos\nlw5\podcastrnext\node_modules\next\dist\client\dev\amp-dev.js
C:/Users/familia/Desktop/Guilherme/Projetos/NLW5/podcastrnext/node_modules/@babel/runtime/helpers/interopRequireWildcard.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers: * C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\@babel\runtime\helpers\interopRequireWildcard.js
Used by 1 module(s), i. e.
C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\@next\react-refresh-utils\loader.js!C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\next\dist\build\webpack\loaders\next-babel-loader.js??ref--4-1!C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\next\dist\client\router.js * C:\users\familia\desktop\guilherme\projetos\nlw5\podcastrnext\node_modules\@babel\runtime\helpers\interopRequireWildcard.js
Used by 8 module(s), i. e.
C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\@next\react-refresh-utils\loader.js!C:\Users\familia\Desktop\Guilherme\Projetos\NLW5\podcastrnext\node_modules\next\dist\build\webpack\loaders\next-babel-loader.js??ref--4-1!C:\users\familia\desktop\guilherme\projetos\nlw5\podcastrnext\node_modules\next\dist\client\next-dev.js
C:/Users/familia/Desktop/Guilherme/Projetos/NLW5/podcastrnext/node_modules/@babel/runtime/helpers/typeof.js
There are multiple modules with names that only differ in casing.
Delete node_modules and run npm install again
– Lenon S. De Paula
I did it and it didn’t solve
– Guilherme Lima de Souza