Uncaught TypeError: i._raf is undefined in blazy.observer.min.js

Created on 12 April 2024, 2 months ago
Updated 26 May 2024, 21 days ago

Problem/Motivation

I'm getting js error: Uncaught TypeError: i._raf is undefined in blazy.observer.min.js
From looking at old versions of the module with unminified js I know i is scope, so scope._raf is undefined.

Steps to reproduce

Open a page with blazy, look at the js console.

Proposed resolution

I have no idea what _raf is used for however just checking if it's undefined and if so setting it to an array makes the error go away and as far as I can tell doesn't have any adverse side effects.

💬 Support request
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom dahousecat

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024