million icon indicating copy to clipboard operation
million copied to clipboard

Duplicated module file extension in Next.js with turbopack

Open KBeDevel opened this issue 7 months ago • 3 comments

What version of million are you using?

3.1.11

Are you using an SSR adapter? If so, which one?

Vercel/[email protected]

What package manager are you using?

bun

What operating system are you using?

Linux

What browser are you using?

Chrome, Firefox, Opera, Floorp, Vivaldi, Brave

Describe the Bug

Module extensions are duplicated when being called at compiling time (in dev mode)

One of the multiple errors: image

This occurs with every single 'use client' component when using turbopack and @million/lint > 1.0.0-rc.81 in dev mode.

When I use @million/[email protected] and [email protected] this issue disappears.

What's the expected result?

Resolve client modules without duplicated extension

Link to Minimal Reproducible Example

https://codesandbox.io/p/devbox/nextjs-million-lint-bug-d74985?file=%2Fnext.config.mjs%3A47%2C1

Participation

  • [ ] I am willing to submit a pull request for this issue.

KBeDevel avatar Jul 25 '24 19:07 KBeDevel