TypeError: undefined is not an object (evaluating 'scope.awesomeThings') #1327
Comments
You may need to install some other dependencies:
Try this and check if your test passes or the error message change. |
Did someone had a solution on how to fix the error that mithlesh-kumar has faced? Thanks a ton for the help |
Under what environment are you working @thrinay? |
Angular itself. I have been using grunt, bower npm and all. Let me provide you my Karma.conf.js file and gruntfile.js file // Karma configuration module.exports = function(config) { config.set({
}); Gruntfile.js file: // Generated on 2016-07-15 using generator-angular 0.15.1 // # Globbing module.exports = function (grunt) { // Time how long tasks take. Can help when optimizing build times // Automatically load required Grunt tasks // Configurable paths for the application // Define the configuration for all the tasks
}); grunt.registerTask('serve', 'Compile then start a connect web server', function (target) {
}); grunt.registerTask('server', 'DEPRECATED TASK. Use the "serve" task instead', function (target) { grunt.registerTask('test', [ grunt.registerTask('build', [ grunt.registerTask('default', [ Error being displayed:
Running "wiredep:app" (wiredep) task Running "wiredep:test" (wiredep) task Running "wiredep:sass" (wiredep) task Running "concurrent:test" (concurrent) task
Running "postcss:server" (postcss) task
Running "postcss:dist" (postcss) task
Running "connect:test" (connect) task Running "karma:unit" (karma) task Aborted due to warnings. Execution Time (2016-08-25 20:18:03 UTC+2) Finally my app structure: ApplicationFolder: |
HI, Regards, |
Hello Kiran, Thank you for the response, the issue is I have given a wrong controller name in my test file and that is what resulted in giving me back such error. Actual Controller name to be given is : configCtrl, Given Controller name in Test file is ConfigCtrl. |
I am new to
yeoman generator-angular
, I created project usingyo angular
. I rungrunt serve
to launch demo example it works fine. When I try to rungrunt test
it thrown an errorTypeError: undefined is not an object (evaluating 'scope.awesomeThings').
I tried different way to follow Yeoman codelab tutorial, update my code with TODO app example given. This time got the similar issue of undefined is not object
TypeError: undefined is not an object (evaluating 'scope.todos').
I not sure what going wrong, I didn't update any configuration file. Please find below exact line of error I am getting
Thanks for help!!
The text was updated successfully, but these errors were encountered: