Error opening Bun Function

juanHOBBY

3 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

juanHOBBY

3 months ago

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


3 months ago

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


juanHOBBY

3 months ago

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


juanHOBBY

3 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'

3 months ago

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


jaredlundeEMPLOYEE

3 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.


jaredlundeEMPLOYEE

3 months ago

This should be fixed after a hard refresh


juanHOBBY

3 months ago

It works!


jaredlundeEMPLOYEE

3 months ago

awesome! thanks for reporting


3 months ago

!s


Status changed to Solved brody 3 months ago


Error opening Bun Function - Railway Help Station