pugjs / pug

Pug – robust, elegant, feature rich template engine for Node.js
https://pugjs.org
21.54k stars 1.96k forks source link

Cannot read property 'match' of undefined #3434

Open WizzerWorks opened 1 month ago

WizzerWorks commented 1 month ago

/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.