Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'elt' of undefined #12

Open
KeaganStokoe opened this issue Dec 9, 2020 · 1 comment
Open

Comments

@KeaganStokoe
Copy link

Hey, Jagracar :)

Thanks for the epic library, recently stumbled across it and I'm loving it!

I'm getting the following error when trying to run my script:
Uncaught TypeError: Cannot read property 'elt' of undefined at new GPlot (grafica.min.js:1)

I saw that it has come up in the past, and have updated my version of p5 and grafica, as it seemed to resolve the issue for others, but it hasn't helped.

Thanks for the help!

@kkatsuro
Copy link

I got same error after passing function instead of sketch to GPlot, I don't know if this was your issue but one surely can get confused because of naming conventions here and in p5.js ES6 instance mode example, in defaultPlot.js example we have:
var defaultPlotSketch = function(p) {
where p is sketch object here:
const s = ( sketch ) => {

https://github.com/processing/p5.js/wiki/Global-and-instance-mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants