elm-test icon indicating copy to clipboard operation
elm-test copied to clipboard

Crash: `TypeError: undefined is not a function` when importing package with native code

Open kommen opened this issue 8 years ago • 0 comments

Not sure if this belongs here or over there at https://github.com/rtfeldman/node-elm-test, but when I want to run tests which import a 3rd party module with native code, in my case https://github.com/svard/elm-phoenix.

elm-test web/static/elm/TestRunner.elm
Successfully compiled web/static/elm/TestRunner.elm
Running tests...
[stdin]:13573
.call(e,n)&&t.push(n);return t},u.brunch=!0,t.require=u}}(),require.define({ph
                                                                    ^
TypeError: undefined is not a function
    at [stdin]:13573:1330
    at Object.exports.runInThisContext (vm.js:74:17)
    at Object.<anonymous> ([stdin]-wrapper:6:22)
    at Module._compile (module.js:460:26)
    at evalScript (node.js:431:25)
    at Socket.<anonymous> (node.js:164:11)
    at Socket.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

Any idea what's happening here?

kommen avatar Dec 29 '15 14:12 kommen