Search
Setup for Free
CD
Cloudflare Developers
Issues with types - R2Object is not defined
Original message was deleted
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,465
Members
View on Discord
Similar Threads
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
K
kian
•
1/22/24, 7:41 AM
If you
're trying to check if an object was returned
, just check if
object
object
is null
K
kian
•
1/22/24, 7:47 AM
instanceof
instanceof
won
't work here
, you
'd only be able to do stuff like
object?.constructor.name
object?.constructor.name
.
K
kian
•
1/22/24, 7:48 AM
Which
, in the case of
R2Bucket.get(...)
R2Bucket.get(...)
, is
GetResult
GetResult
object
object
instanceof
instanceof
object?.constructor.name
object?.constructor.name
R2Bucket.get(...)
R2Bucket.get(...)
GetResult
GetResult
Similar Threads
ReferenceError: crypto is not defined
CD
Cloudflare Developers / pages-help
2y ago
ReferenceError process is not defined
CD
Cloudflare Developers / workers-and-pages-help
3y ago
Uncaught ReferenceError: MessageChannel is not defined
CD
Cloudflare Developers / workers-and-pages-help
13mo ago