Error opening Bun Function
juan
HOBBYOP

10 months ago

I've created a new bun function. It was working fine until I reloaded the page: when I go to the source code of the function, the app crashes. I've tried clearing the cache of my browser and nothing.

The console is full of these errors (I've added date-fns to my Function)

Solved

0 Replies

juan
HOBBYOP

10 months ago

26859f7d-dec1-4d85-b996-96b5b0439d10


brody
EMPLOYEE

10 months ago

please provide a minimal reproducible example code snippet so that we can attempt to reproduce ourselves


juan
HOBBYOP

10 months ago

that's the thing, I can't access it


juan
HOBBYOP

10 months ago

I assume it has to do with the dependencies I'm using. Try an empty file with

import { format } 'date-fns'
import { UTCDate } from '@date-fns/utc'

brody
EMPLOYEE

10 months ago

please provide a minimal reproducible example that you have confirmed to reproduce it


jaredlunde
EMPLOYEE

10 months ago

I think I know what the issue is. I’m assuming date-fns imports a lot of locale information and the requests get overloaded in Chrome. I will put out a fix for this today.


jaredlunde
EMPLOYEE

10 months ago

This should be fixed after a hard refresh


juan
HOBBYOP

10 months ago

It works!


jaredlunde
EMPLOYEE

10 months ago

awesome! thanks for reporting


brody
EMPLOYEE

10 months ago

!s


Status changed to Solved brody 10 months ago


Loading...