#Uncaught ReferenceError: Deno is not defined
6 messages · Page 1 of 1 (latest)
Is the error coming from... Deno itself when running the code? Type-checking? Bundling?
It happens when it loads a specific island component
Found a relevant GH issue: https://github.com/denoland/fresh/issues/988
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 ...
@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
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