Skip to content

build issues: postinstall fails with prism 1.9 #1411

@cpboyd

Description

@cpboyd

Log from npm install:

Binary found at C:\Projects\GitHub\stackedit\node_modules\node-sass\vendor\win32-x64-64\binding.node
Testing binary
Binary is fine

> [email protected] postinstall C:\Projects\GitHub\stackedit
> gulp build-prism

gulp[12264]: src\node_contextify.cc:635: Assertion `args[1]->IsString()' failed.
 1: 00007FF6D6BB0205
 2: 00007FF6D6B8A176
 3: 00007FF6D6B8A241
 4: 00007FF6D6B63F9A
 5: 00007FF6D71C4102
 6: 00007FF6D71C5258
 7: 00007FF6D71C45BD
 8: 00007FF6D71C44DB
 9: 000001F000E841C1
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] postinstall: `gulp build-prism`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.

I've tried removing package-lock.json and re-running npm install from scratch, which succeeds...

But the resulting build gives this error when served with prism 1.15 (the original package-lock.json had 1.9):

Uncaught TypeError: Cannot set property 'comment' of undefined
    at Object.extend (prism.js:90)
    at Object.<anonymous> (prism.js:5392)
    at Object.<anonymous> (vendor.723162366e8d1f6b966e.js:47300)
    at n (bootstrap 0e9047d8583f52107ad0:54)
    at Object.<anonymous> (app.476a396bd6ac8bf9ab44.js:22824)
    at n (bootstrap 0e9047d8583f52107ad0:54)
    at Object.<anonymous> (index.js:1)
    at n (bootstrap 0e9047d8583f52107ad0:54)
    at Object.<anonymous> (app.476a396bd6ac8bf9ab44.js:23101)
    at n (bootstrap 0e9047d8583f52107ad0:54)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions