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

Next.js dev server stuck on "Compiling...' after version 3.3.1 #25

Open
Soberia opened this issue Aug 22, 2024 · 7 comments
Open

Next.js dev server stuck on "Compiling...' after version 3.3.1 #25

Soberia opened this issue Aug 22, 2024 · 7 comments

Comments

@Soberia
Copy link

Soberia commented Aug 22, 2024

I can't get the dev server up on version 3.4.0 or later which has fallback support.
I have Next.js version 15.0.0-rc.0 and React 19.0.0-rc-2d2cc042-20240809 and run the dev server with TurboPack (next dev --turbo)

@0xa3k5
Copy link
Owner

0xa3k5 commented Aug 22, 2024

Thank you for reporting @Soberia I'm running a similar setup in tokenicons.io and it's running fine. Could you create a reproducable repo so I can see the issue?

@0xa3k5
Copy link
Owner

0xa3k5 commented Aug 22, 2024

also, do you see any errors? It's very interesting that the fallback prop has anything to do with it

@Soberia
Copy link
Author

Soberia commented Aug 23, 2024

unfortunately, there are no errors.

Steps to reproduce:

  • run npx create-next-app@rc --empty --turbo
  • run npm install @web3icons/react@3.6.1
  • edit src/app/page.tsx to the following:
"use client"

import {TokenIcon} from '@web3icons/react'

export default function Home() {
  return <TokenIcon symbol="btc" size="1rem" />
}
  • run the dev server
> xxx@0.1.0 dev
> next dev --turbo

  ▲ Next.js 15.0.0-rc.0 (turbo)
  - Local:        http://localhost:3000

 ✓ Starting...
 ✓ Ready in 2.8s
 ○ Compiling / ...

@0xa3k5
Copy link
Owner

0xa3k5 commented Aug 23, 2024

when I did that, it is working for me @Soberia . I've realized the compiling takes a bit of time tho, I imagine it has something to do with internals of nextjs@15 which I can not optimize for at this time.

@Soberia
Copy link
Author

Soberia commented Aug 23, 2024

It's weird, I tried on two different systems (Ubuntu 24.04 and WSL with node 20). both with the same result. server won't finish the compiling no matter how much time it takes.

I switched back to version 3.3.1, feel free to close the issue.

@0xa3k5
Copy link
Owner

0xa3k5 commented Aug 23, 2024

i will keep digging, will tag you if i can figure it out

@tanvir0604
Copy link

Same problem here. Its taking too much time to compile with this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants