#Uncaught ReferenceError: Deno is not defined

6 messages · Page 1 of 1 (latest)

lusty sluice
#

Hi all, I'm receiving the following error in production (not development)

chunk-IFTT5SOG.js:13 Uncaught ReferenceError: Deno is not defined

The strange part is there have been no code changes in the past few months. Does anyone have tips for debugging?

midnight depot
#

Is the error coming from... Deno itself when running the code? Type-checking? Bundling?

lusty sluice
#

It happens when it loads a specific island component

shy timber
#

@lusty sluice I don't know how much help this will be, but I replied to that issue you linked with a recommendation. I don't know if it'll solve your error without knowing more about your particular issue, but hopefully it helps 🤞

https://github.com/denoland/fresh/issues/988#issuecomment-1383282186

GitHub

When I import supabase js client library from https://esm.sh/@supabase/supabase-js@2 in my island's button onClick handler, I got this error: constants.ts:198 Uncaught ReferenceError: Deno ...

#

Long and short of the recommendation was to move the supabase import and logic out of the island layer and in to the routing layer as Deno is likely not available in the browser context