Open glappsi opened 2 months ago
Getting "TypeError: Cannot set properties of undefined (setting 't')" since there is no app.locals in onModuleInit (using pug).
app.locals
onModuleInit
pug
app.useStaticAssets({ root: join(__dirname, 'public') }); app.setViewEngine({ engine: { pug: require('pug'), }, templates: join(__dirname, 'views'), });
not needed
npm
small repro would be nice
How? A whole repo is needed, it's not just specific lines of code to cause this. Edited my question to be more specific.
Describe the bug
Getting "TypeError: Cannot set properties of undefined (setting 't')" since there is no
app.locals
inonModuleInit
(usingpug
).Reproduction
System Info
Used Package Manager
npm
Validations