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

Cannot read property 'match' of undefined #3434

Open
WizzerWorks opened this issue Apr 22, 2024 · 1 comment
Open

Cannot read property 'match' of undefined #3434

WizzerWorks opened this issue Apr 22, 2024 · 1 comment

Comments

@WizzerWorks
Copy link

/usr/local/lib/node_modules/pug/node_modules/pug-runtime/index.js:285
throw err;
^

TypeError: templates/mixins/itterate.pug:22
20| +itterate(item, item.title, obj)
21| else

22| - var schema = key.match(/^(properties)|(patternProperties)|(items)$/) ? obj : val
23| +itterate(item, name, schema)
24| else
25| dt

Cannot read property 'match' of undefined
at Object.eval (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :172:18)
at Object.pug_interp [as itterate] (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :178:4)
at Object.eval (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :151:23)
at Object.pug_interp [as itterate] (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :178:4)
at Object.eval (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :174:23)
at Object.pug_interp [as itterate] (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :178:4)
at Object.eval (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :174:23)
at Object.pug_interp [as itterate] (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :178:4)
at Object.eval (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :174:23)
at Object.pug_interp [as itterate] (eval at wrap (/usr/local/lib/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), :178:4) {
path: 'templates/mixins/itterate.pug'
}

Pug Version: your version number here

Node Version: v12.22.9

Additional Comments

Using matic (https://github.com/mattyod/matic) with pug to process glTF 1.0 schemas.

@Davidiusdadi
Copy link

node 12 is long end of life 🤔

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