You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I try to use this library on Cloudflare Pages, I get the error
Cannot read properties of undefined (reading 'TYPED_ARRAY_SUPPORT')
This is relevant to node-libs-browser requiring buffer.
To Reproduce
Make a SvelteKit project, and require this library. Import it dynamically (in order to be able to view the error message, since Cloudflare pages doesn't have logs). When importing it, you get an error like
TypeError: Cannot read properties of undefined (reading 'TYPED_ARRAY_SUPPORT')
Expected behavior
The library to import and run normally in CF Pages' JS interpreter.
Version:
node.js: 17
xmlbuilder2 ^3.0.2
Additional context
N/A
The text was updated successfully, but these errors were encountered:
You can also go around this by defining an alias in your build machinery to skip the minified version that has the corrupted polyfill for Buffer. For example in vite config resolve.alias:
Describe the bug
When I try to use this library on Cloudflare Pages, I get the error
This is relevant to node-libs-browser requiring buffer.
To Reproduce
Make a SvelteKit project, and require this library. Import it dynamically (in order to be able to view the error message, since Cloudflare pages doesn't have logs). When importing it, you get an error like
Expected behavior
The library to import and run normally in CF Pages' JS interpreter.
Version:
Additional context
N/A
The text was updated successfully, but these errors were encountered: