Buffer is not defined - drizzle-arktype

I got this error when importing a file that hasimport { createInsertSchema, createSelectSchema } from 'drizzle-arktype' into my vite app
No description
6 Replies
dion
dion4w ago
Did u figure this out? getting the same issue here
DiamondDragon
DiamondDragonOP4w ago
Nope. One of us should file an issue
Maston
Maston4w ago
drizzle-arktype uses the node global "Buffer", as a workaround you could use vite-plugin-node-polyfills to polyfill it but it would be good to file an issue yeah
npm
vite-plugin-node-polyfills
A Vite plugin to polyfill Node's Core Modules for browser environments.. Latest version: 0.23.0, last published: 3 months ago. Start using vite-plugin-node-polyfills in your project by running npm i vite-plugin-node-polyfills. There are 110 other projects in the npm registry using vite-plugin-node-polyfills.
dion
dion4w ago
Alright i filed
DiamondDragon
DiamondDragonOP3w ago
GitHub
[BUG]: Buffer is not defined using drizzle-arktype client side with...
Report hasn't been filed before. I have verified that the bug I'm about to report hasn't been filed before. What version of drizzle-orm are you using? 0.41.0 What version of drizzle-kit...
Mario564
Mario5643w ago
Will look into it, thanks for reporting

Did you find this page helpful?