Problem: curtains.js raises errors “TypeError: cannot read property ‘execute’ of undefined”

Problem Description:

Everything was working fine and I didn’t change anything, but when I run the program in my local environment, it shows the above error. Other occurred error messages include: “Plane: Unable to create a Plane because the Renderer WebGL context is not defined”, “Failed to create WebGL context: failIfMajorPerformanceCaveat: Compositor is not hardware-accelerated.”

Reason

Browser updated before running the program

Solution

  1. Restart the browser;
  2. If it is unsolved, reboot your computer;

Root Cause

According to Zach Saucier, the WebGL renderer may crash. So the problem has nothing to do with curtain.js

Reference

https://css-tricks.com/creating-webgl-effects-with-curtainsjs/ — Remo’s comment stated the same issue

--

--

--

Web developer

Love podcasts or audiobooks? Learn on the go with our new app.

How to create a form in ReactJS -(REST API - Part 1)

GSoC 2020: Tasty Testing with Mocha and Chai ☕️

Implementing a crypto payment gateway using NodeJS

An Introduction to Netlify

7 Practical Tips to Write a Secure JavaScript Web Application

React Native Push Notification

LeetCode: 01 Matrix (Two-Pass Method)

Chain React Speaker Interview: Vlad Novick on Programming, Augmented Reality, and Our Cyberpunk…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Asher Yang

Asher Yang

Web developer

More from Medium

Spotify Teardown: Inside the Black Box of Streaming Music

Fixed: WoW Error Code BLZ51901016 — You have Been Disconnected

Julia Srour On What Makes True and Lasting Transformation

Founded by Veteran Game Producer Steve Gray, The Apollo Project “TAP” is a Foray into Creating the…