aidenybai/million

Duplicated module file extension in Next.js with turbopack

Opened this issue · 4 comments

What version of million are you using?

3.1.11

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

Vercel/Next.js@14.2.5

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/lint@1.0.0-rc.81 and million@3.1.11 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.

Thanks for opening this issue! A maintainer will review it soon.

Reproducable starting in version @million/lint@1.0.0-rc.82 up to @million/lint@1.0.0-rc.84. With version @million/lint@1.0.0-rc.81 I do not get this error message

Reproducable starting in version @million/lint@1.0.0-rc.82 up to @million/lint@1.0.0-rc.84. With version @million/lint@1.0.0-rc.81 I do not get this error message

You are right. I'll update the issue.

Is there any maintainer to provide any guidelines to patch this issue?

Thank you in advance.