WarlockkW
Denoβ€’2y agoβ€’
2 replies
Warlockk

I can't write Uint32Array on a file.

I want to write an Uint32Array type to a file, but i always have the following error:

error: Uncaught (in promise) TypeError: expected typed ArrayBufferView


I tried using Deno.writeFileSync and writeFileSync from node:fs, but no one worked. What can I do?

It seems like Deno is limiting us to write only the Uint8Array type.
Was this page helpful?