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

causes error in browser when running elm-test when elm test code is compiled with webpack #9

Open
greyepoxy opened this issue Mar 11, 2016 · 1 comment

Comments

@greyepoxy
Copy link

Full details are here deadfoxygrandpa/elm-test#32 (comment)

Essentially what is going on is that I am seeing

require is not defined


Open the developer console for more details.

Appears to be happening because when compiling my test code with webpack via the elm-webpack-loader. module.exports = Elm; is appended to the resulting file making the current guards around the require call insufficient.

Fix seems to be to just add a check to see if require is defined. Will send out a pull request.

@laszlopandy
Copy link
Owner

Should be fixed in version 1.1.1
http://package.elm-lang.org/packages/laszlopandy/elm-console/1.1.1/

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

2 participants