This forum has moved, please join us on github discussions. We will keep these old posts available for reference. Thank you!

TypeError after npm install apostrophe-blocks

Hi,

I have installed the apostrophe-blocks module with the “npm install --save apostrophe-blocks” command.

When I do “node app.js”, I get this error:

C:\wk\apostrophe\test1\node_modules\moog\index.js:317
if (key.substr(0, 2) === ‘__’) {
^

TypeError: key.substr is not a function
at C:\wk\apostrophe\test1\node_modules\moog\index.js:317:19
at Function.forEach (C:\wk\apostrophe\test1\node_modules\moog\node_modules\lodash\dist\lodash.js:3298:15)
at applyOptions (C:\wk\apostrophe\test1\node_modules\moog\index.js:313:11)
at C:\wk\apostrophe\test1\node_modules\moog\index.js:230:15
at iterate (C:\wk\apostrophe\test1\node_modules\moog\node_modules\async\lib\async.js:146:13)
at Immediate. (C:\wk\apostrophe\test1\node_modules\moog\node_modules\async\lib\async.js:157:25)
at runCallback (timers.js:651:20)
at tryOnImmediate (timers.js:624:5)
at processImmediate [as _immediateCallback] (timers.js:596:5)

Can anyone help me ?
Thanks
Yannick

Hey there Yannick, apostrophe-blocks isn’t going to work unless you’re using with the Apostrophe 0.5.