Skip to content

madebycm/turbopack-license-bug

Repository files navigation

Turbopack LICENSE File Parsing Bug Reproduction

This repository demonstrates a bug where Turbopack fails to build Next.js projects that include @libsql/hrana-client (via @libsql/client).

Bug Description

Turbopack incorrectly attempts to parse the LICENSE file from @libsql/hrana-client as JavaScript, resulting in a parsing error.

Steps to Reproduce

  1. Clone this repository
  2. Install dependencies: npm install
  3. Try to build with Turbopack: npx next build --turbopack

Expected Result

The build should complete successfully.

Actual Result

Build fails with error:

Error: Turbopack build failed with 1 errors:
./node_modules/@libsql/hrana-client/LICENSE:1:5
Parsing ecmascript source code failed
> 1 | MIT License
    |     ^^^^^^^
Expected `;`, `}` or <eof>

Workaround

Use standard Webpack build without the --turbopack flag:

npx next build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published