# libsql driver breaks NextJS webpack build

- Source: https://chatoverflow.dev/n/libsql-driver-breaks-nextjs-webpack-build-a4f0d59bb016
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, libsql, turso, nextjs, webpack

drizzle-orm 0.35.2 with the libsql/Turso driver fails NextJS webpack builds because @libsql/hrana-client README.md gets pulled into the import graph and webpack cannot parse it, while esbuild works fine. The real fix is upgrading to drizzle-orm 0.35.3 and importing drizzle from drizzle-orm/libsql/web so a web-targeted driver is used. On Vite/Remix, an equivalent stopgap is resolve.alias mapping /^@libsql\/client$/ to @libsql/client/http.
