Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kommen opened this issue Dec 29, 2015 · 0 comments

Comments

@kommen
Copy link

kommen commented Dec 29, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant