dan5py / turborepo-shadcn-ui

Turborepo starter with shadcn/ui pre-configured.
MIT License
545 stars 105 forks source link

Multiple star export conflict #9

Closed Fractal-Tess closed 1 year ago

Fractal-Tess commented 1 year ago

Hey there,

Exporting multiple ui components causes webpack to complain about name conflicts:

Example console output?

The requested module './components/ui/alert-dialog' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './components/ui/accordion'

Import trace for requested module:
../../packages/ui/index.tsx
./app/page.tsx

../../packages/ui/index.tsx
The requested module './components/ui/aspect-ratio' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './components/ui/accordion'

Import trace for requested module:
../../packages/ui/index.tsx
./app/page.tsx

../../packages/ui/index.tsx
The requested module './components/ui/avatar' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './components/ui/accordion'

Import trace for requested module:
../../packages/ui/index.tsx
./app/page.tsx

etc...

You can replicate this by installing every single component and then importing any of them inside of next.

Versions:

next:13.4.13
template git commit hash: b55c47ca7472d0a0a5a3b12bee95c31567eac2b2
dan5py commented 1 year ago

Fixed in 1.0.3