mailbrush icon indicating copy to clipboard operation
mailbrush copied to clipboard

TypeError: Cannot read property 'tokenizePlaceholders' of undefined

Open kuncevic opened this issue 4 years ago • 0 comments

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)

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.

kuncevic avatar Feb 03 '20 00:02 kuncevic