ActiveCampaign / mailbrush

Node.js library for generating email friendly snippets with syntax highlighting
MIT License
33 stars 7 forks source link

TypeError: Cannot read property 'tokenizePlaceholders' of undefined #6

Open kuncevic opened 4 years ago

kuncevic commented 4 years ago

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.