Skip to content

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

@kuncevic

Description

@kuncevic

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 PrismJS/prism#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions