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

question: how to use with Next 15 and turbopack #384

Open
3 tasks done
codenomnom opened this issue Oct 30, 2024 · 4 comments
Open
3 tasks done

question: how to use with Next 15 and turbopack #384

codenomnom opened this issue Oct 30, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@codenomnom
Copy link

Clear and concise description of the problem

Hi there,
I'm experiencing issues while trying to setup Unplugin Icons in a Next.js project (15.0.1) that uses turbopack. It seems that the webpack callback provided in next.config does not fire at all, thus not adding the icons plugin.

There's a way to configure turbopack but I'm unsure how to do that in regards of Icons. Can you help me with that? Thanks! 😃

Suggested solution

I don't have one

Alternative

No response

Additional context

No response

Validations

@codenomnom codenomnom added the enhancement New feature or request label Oct 30, 2024
@userquin
Copy link
Member

Try adding .default when registering the unplugin icons webpack plugin in the Next configuration file: #387

@codenomnom
Copy link
Author

The thing is, when using turbopack ("dev": "next dev --turbopack"), the webpack callback inside next.config.ts does not get fired at all.

@codenomnom
Copy link
Author

Argh, I knew moving to turbopack was the issue, but I hoped the plugin here just needs a bit of examples on how to configure it. Didn't know there's an issue with the plugin system 😭 Does that mean that it's an either-or situation (turbopack or unplugi-icons)?

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

No branches or pull requests

2 participants