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

karma ReferenceError's #80

Open
LarryEitel opened this issue Dec 17, 2013 · 2 comments
Open

karma ReferenceError's #80

LarryEitel opened this issue Dec 17, 2013 · 2 comments

Comments

@LarryEitel
Copy link

Working on getting all tests to pass and haven't found a way to resolve the following errors:

Running "karma:single" (karma) task
Chrome 31.0.1650 (Windows 8) ERROR
        Uncaught ReferenceError: module is not defined
        at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/account/controllers/_layout.js:7
Chrome 31.0.1650 (Windows 8) ERROR
        Uncaught ReferenceError: module is not defined
        at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/account/controllers/summary.js:7
Chrome 31.0.1650 (Windows 8) ERROR
        Uncaught ReferenceError: require is not defined
        at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/account/index.js:7
Chrome 31.0.1650 (Windows 8) ERROR
        Uncaught ReferenceError: module is not defined
        at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/admin/controllers/_layout.js:8
Chrome 31.0.1650 (Windows 8) ERROR
        Uncaught ReferenceError: module is not defined
        at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/admin/controllers/dashboard.js:7
Chrome 31.0.1650 (Windows 8) ERROR
        Uncaught ReferenceError: module is not defined
        at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/admin/controllers/users.js:8
Chrome 31.0.1650 (Windows 8) ERROR
        Uncaught ReferenceError: require is not defined
        at C:/Users/Larry/__prjs/_git/m.ourfield.org/client/js/admin/index.js:7
Chrome 31.0.1650 (Windows 8): Executed 0 of 0 ERROR (0.079 secs / 0 secs)
Warning: Task "karma:single" failed. Use --force to continue.

Thanks in advance for any 'insights'.

@pilwon
Copy link
Owner

pilwon commented Dec 17, 2013

@LarryEitel Test runners are not properly set up. Using browserify that is currently used in our seed is extremely useful for organizing client-side JS. But apparently it makes testing of Angular code somewhat challenging. We haven't looked into this in detail yet. It someone figures out how to set this up please submit pull request.

@pilwon
Copy link
Owner

pilwon commented Dec 17, 2013

Related issue: #11

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