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
[easygettext] could not read: './dev/pages/base-variables.pug' using acorn as parser
Trace: TypeError: ./dev/pages/base-variables.pug:13
11| - let langInUrl = false
12| - let appLinkIconSuffix = ''
> 13| -
14| let languages = Object.keys(isoLanguages).filter(code => {
15| return _.includes(supportedLanguages, code);
16| }).map(code => {
Cannot read property 'includes' of undefined
at eval (eval at wrap (/Users/7iomka/Desktop/Projects/Core_new/core_new/node_modules/pug/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:752:11)
My locals and pug build looks like this
const _ = require('lodash');
const locals = { _, ... }
...
// Compile the source code of file with compilation option from pug-config
const compiledFunction = pug.compileFile(source, options);
// Render a set of data
const html = compiledFunction({
...locals,
langToRender: lang,
variablesToRender: locals.includeVariables(lang),
});
The text was updated successfully, but these errors were encountered:
My locals and pug build looks like this
The text was updated successfully, but these errors were encountered: