formatjs / handlebars-intl

Handlebars helpers for internationalization.
http://formatjs.io/handlebars/
Other
265 stars 28 forks source link

TypeError: Cannot read property 'escapeExpression' of undefined #87

Closed julianbeggs closed 4 years ago

julianbeggs commented 7 years ago

After installing: julianb-HP-14-Notebook-PC:~/Projects/bigla/shopping-cart$ npm i --save handlebars-intl cart@0.0.0 /home/julianb/Projects/bigla/shopping-cart └── handlebars-intl@1.1.2

Crashed app: julianb@julianb-HP-14-Notebook-PC:~/Projects/bigla/shopping-cart$ npm start

cart@0.0.0 start /home/julianb/Projects/bigla/shopping-cart nodemon ./bin/www

[nodemon] 1.11.0 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting node ./bin/www /**home/julianb/Projects/bigla/shopping-cart/node_modules/handlebars-intl/lib/helpers.js:22 escape = Handlebars.Utils.escapeExpression; ^

TypeError: Cannot read property 'escapeExpression' of undefined at Object.registerWith (/home/julianb/Projects/bigla/shopping-cart/node_modules/handlebars-intl/lib/helpers.js:22:39)** at Object. (/home/julianb/Projects/bigla/shopping-cart/app.js:15:16) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (/home/julianb/Projects/bigla/shopping-cart/bin/www:7:11) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:418:7) at startup (bootstrap_node.js:139:9) at bootstrap_node.js:533:3 [nodemon] app crashed - waiting for file changes before starting... ^C julianb@julianb-HP-14-Notebook-PC:~/Projects/bigla/shopping-cart$