Quick Solution for @libsql/hrana-client/LICENSE Syntax Error (Expected ';', '}' or <eof>) in Next.js 15

Search for a command to run...

No comments yet. Be the first to comment.
All around web development by Justforvan. Could be something really simple and easy to something bit chewier to bit.
NextJS is a huge framework in the web development industry in 2025. Lots of people using it for their application. Be it hobbyists, professionals, etc. One thing is for sure, when we build a dynamic web app, we will almost always encountering the use...
NextJS is a huge framework in the web development industry in 2025. Lots of people using it for their application. Be it hobbyists, professionals, etc. One thing is for sure, when we build a dynamic web app, we will almost always encountering the use...

Today I went to try Angular 17 with Material Angular and Tailwind. Nothing fancy. However I then got this error on my console when I'm trying to do ng serve: Schema validation failed with the following errors: Data path "" must have required property...

Today I went on Instagram and saw an advertisement for some sort of programming course. The image was.. interesting, to say the least.So I took a screenshot 📷: I censored the username and profile picture because I sincerely have no intention of mes...

A bit of story 📖 Lately, my websites have been dealing with massive amount of requests. There are literally hundreds of thousands of request each month for about three consecutive months. Well, trafic's a good thing but pardon me for saying that tra...

> Build error occurred
Error: Turbopack build failed with 1 errors:
./node_modules/@libsql/hrana-client/LICENSE:1:5
Parsing ecmascript source code failed
> 1 | MIT License
| ^^^^^^^
2 |
3 | Copyright 2023 the sqld authors
4 |
Expected ';', '}' or <eof>
at ./node_modules/ (libsql/hrana-client/LICENSE:1:5)
Error: Command "npm run build" exited with 1
Such error was shown when pushing to Vercel and was not seen in development environtment.
| Techs | Version |
| Next.js | 15.5.2 (with turbopack) |
| Node | 24.4.0 |
| Biomejs | 2.2.0 |
| Libsql/client | 0.15.15 |
| Drizzle ORM | 0.44.5 |
| Vercel | N/A |
Find your package.json file
Find the following lines:
"scripts": {
"dev": "next dev --turbopack",
"build": "next build --turbopack",
"start": "next start",
"lint": "biome check",
"format": "biome format --write"
},
Remove the --turbopack from build command, so it becomes:
"scripts": {
"dev": "next dev --turbopack",
"build": "next build", //LOOK HERE
"start": "next start",
"lint": "biome check",
"format": "biome format --write"
},
This error seems to affect Turbopack builds since removing --turbopack from the build script can resolve the build error. This error also mentioned here https://community.vercel.com/t/build-error-an-unexpected-error-happened-when-running-this-build/20836
Attempting to manually delete all the LICENSE and README files relating to hrana library from the Node Modules proven to not work for me. However, it may yields different result to other people as seen here https://github.com/vercel/next.js/issues/82881#issuecomment-3220603319