million: Error: the name `Component` is defined multiple times
What version of million
are you using?
2.6.0
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
Endless build using 2.6.0 with next@13.5.2. With million@v2.6.0-beta.16 works fine.
> next build
⚡ Million.js 2.6.0
- Tip: use // million-ignore for errors
- Hotline: https://million.dev/hotline
⚡ <Component1> was ignored.
⚡ <Component2> was ignored.
⚡ <Component3> was ignored.
Creating an optimized production build ..
What’s the expected result?
Build should not freeze.
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Reactions: 1
- Comments: 24 (7 by maintainers)
@ps73 @acorn1010 @officialanurag @raiyansarker @nnennajohn @vitaly-grusha Fixed on v2.6.1. Please run
npm i million@latest
to upgradeFor me this is reproducable with the empty vite react-ts starter template: https://stackblitz.com/edit/vitejs-vite-nbdplm?file=vite.config.ts
@aidenybai Same behavior. Tested with million@2.6.3: https://stackblitz.com/edit/nextjs-wend2n-million
Fixed @vitaliy-grusha, can you try again on v2.6.2?
This is the case for me too.
I can confirm that this happens with 2.6.0. Uninstalled and installed v2.6.0-beta.16 and the error goes away.