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

Unable to start the server #40636

Closed
1 task done
Hanaffi opened this issue Sep 17, 2022 · 4 comments
Closed
1 task done

Unable to start the server #40636

Hanaffi opened this issue Sep 17, 2022 · 4 comments
Labels
bug Issue was opened via the bug report template. create-next-app Related to our CLI tool for quickly starting a new Next.js application.

Comments

@Hanaffi
Copy link
Contributor

Hanaffi commented Sep 17, 2022

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Fri Apr 2 22:23:49 UTC 2021
Binaries:
  Node: 16.13.2
  npm: 8.1.2
  Yarn: 1.22.19
  pnpm: N/A
Relevant packages:
  next: 12.3.0
  eslint-config-next: N/A
  react: 18.1.0
  react-dom: 18.1.0

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

npx create-next-app -e with-tailwindcss spotify
and then cd spotify && yarn dev
gives me this error:

info  - Using external babel configuration from /home/ahmed/spotify/.babelrc
error - ./node_modules/next/dist/client/dev/amp-dev.js
Error: Cannot find module 'xwind/babel'
Require stack:
- /home/ahmed/spotify/node_modules/next/dist/compiled/babel/bundle.js
- /home/ahmed/spotify/node_modules/next/dist/compiled/babel/traverse.js
- /home/ahmed/spotify/node_modules/next/dist/build/babel/loader/transform.js
- /home/ahmed/spotify/node_modules/next/dist/build/babel/loader/index.js
- /home/ahmed/spotify/node_modules/next/dist/compiled/webpack/bundle5.js
- /home/ahmed/spotify/node_modules/next/dist/compiled/webpack/webpack.js
- /home/ahmed/spotify/node_modules/next/dist/server/config-utils.js
- /home/ahmed/spotify/node_modules/next/dist/server/config.js
- /home/ahmed/spotify/node_modules/next/dist/server/next.js
- /home/ahmed/spotify/node_modules/next/dist/server/lib/start-server.js
- /home/ahmed/spotify/node_modules/next/dist/cli/next-dev.js
- /home/ahmed/spotify/node_modules/next/dist/lib/commands.js
- /home/ahmed/spotify/node_modules/next/dist/bin/next

Expected Behavior

It should start the server !

Link to reproduction

unneeded

To Reproduce

npx create-next-app -e with-tailwindcss spotify
and then cd spotify && yarn dev

@Hanaffi Hanaffi added the bug Issue was opened via the bug report template. label Sep 17, 2022
@Hanaffi
Copy link
Contributor Author

Hanaffi commented Sep 17, 2022

Its solved by removing .babelrc file..
https://stackoverflow.com/a/73754647/19257410

Will keep it open in case there is a root issue..

@HaNdTriX
Copy link
Contributor

HaNdTriX commented Sep 19, 2022

Looks like create-next-app picked up an old example:

$ npx create-next-app@canary -e with-tailwindcss spotify

should do the trick.

@balazsorban44
Copy link
Member

It was likely caused by a mixup when we were extracting examples from multiple directories, which has been fixed in this PR: #40513, currently available on canary as suggested above. This will be included in the next stable release.

@balazsorban44 balazsorban44 added the create-next-app Related to our CLI tool for quickly starting a new Next.js application. label Sep 19, 2022
@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. create-next-app Related to our CLI tool for quickly starting a new Next.js application.
Projects
None yet
Development

No branches or pull requests

3 participants