Getting an error when running mailbrush node index.js
TypeError: Cannot read property 'tokenizePlaceholders' of undefined
at /Users/A/Work/temp/email/node_modules/prismjs/components/prism-php.js:127:40
at Object.run (/Users/A/Work/temp/email/node_modules/prismjs/prism.js:502:5)
at Object.highlight (/Users/A/Work/temp/email/node_modules/prismjs/prism.js:335:11)
at Object.exports.convert (/Users/A/Work/temp/email/node_modules/mailbrush/dist/mailbrush.js:26:25)
at Object.<anonymous> (/Users/A/Work/temp/email/index.js:32:11)
Getting an error when running mailbrush
node index.js
probably related to that https://github.com/PrismJS/prism/issues/1395
As a quickfix had to remove the
php
from the list https://github.com/wildbit/mailbrush/blob/master/src/mailbrush.js#L15 to bypass the error.