You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/friendly_errors/fes_core.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,6 @@ function fesCore(p5, fn){
82
82
constentryPoints=[
83
83
'setup',
84
84
'draw',
85
-
'preload',
86
85
'deviceMoved',
87
86
'deviceTurned',
88
87
'deviceShaken',
@@ -295,6 +294,10 @@ function fesCore(p5, fn){
295
294
context=instanceMode ? context : window;
296
295
constfnNames=entryPoints;
297
296
297
+
if(context.preload){
298
+
p5._friendlyError('The preload() function has been removed in p5.js 2.0. Please load assets in setup() using async / await keywords or callbacks instead.','preload');
0 commit comments