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

TypeError: Cannot read property '_' of undefined #37

Open
keltik85 opened this issue Oct 12, 2016 · 0 comments
Open

TypeError: Cannot read property '_' of undefined #37

keltik85 opened this issue Oct 12, 2016 · 0 comments

Comments

@keltik85
Copy link

I get this error when i run grunt jasmine --stack:

$ grunt jasmine --stack
Loading "jasmine.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined
Loading "Gruntfile.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined
Warning: Cannot read property 'namespace' of undefined Use --force to continue.
TypeError: Cannot read property 'namespace' of undefined
  at Function.config.getRaw (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt\config.js:33:22)
  at Function.config.get (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt\config.js:46:32)
  at Object.module.exports [as config] (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt\config.js:12:19)
  at Object.<anonymous> (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt-jasmine-runner\tasks\jasmine.js:46:21)
  at Object.<anonymous> (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\util\task.js:294:30)
  at Task.runTaskFn (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\util\task.js:244:24)
  at Task.<anonymous> (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\util\task.js:293:12)
  at Task.start (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\util\task.js:302:5)
  at Object.grunt.tasks (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt.js:155:8)
  at Object.module.exports [as cli] (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt\cli.js:27:9)
  at Object.<anonymous> (C:\Users\myUsername\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt:44:20)
  at Module._compile (module.js:409:26)
  at Object.Module._extensions..js (module.js:416:10)
  at Module.load (module.js:343:32)
  at Function.Module._load (module.js:300:12)
  at Function.Module.runMain (module.js:441:10)
  at startup (node.js:139:18)
  at node.js:968:3


Aborted due to warnings.
Fatal error: Cannot read property 'exit' of undefined
TypeError: Cannot read property 'exit' of undefined
  at Object.fail.warn (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt\fail.js:64:15)
  at Object.task.options.error (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt.js:128:12)
  at Task.<anonymous> (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\util\task.js:214:29)
  at Task.runTaskFn (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\util\task.js:250:7)
  at Task.<anonymous> (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\util\task.js:293:12)
  at Task.start (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\util\task.js:302:5)
  at Object.grunt.tasks (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt.js:155:8)
  at Object.module.exports [as cli] (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt\cli.js:27:9)
  at Object.<anonymous> (C:\Users\myUsername\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt:44:20)
  at Module._compile (module.js:409:26)
  at Object.Module._extensions..js (module.js:416:10)
  at Module.load (module.js:343:32)
  at Function.Module._load (module.js:300:12)
  at Function.Module.runMain (module.js:441:10)
  at startup (node.js:139:18)
  at node.js:968:3

C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt\fail.js:48
  grunt.util.exit(typeof errcode === 'number' ? errcode : fail.code.FATAL_ERROR);
            ^

TypeError: Cannot read property 'exit' of undefined
  at Object.fail.fatal (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt\fail.js:48:13)
  at process.uncaughtHandler (C:\Users\myUsername\IdeaProjects\myProjectName\src\main\webapp\node_modules\grunt\lib\grunt.js:121:10)
  at emitOne (events.js:77:13)
  at process.emit (events.js:169:7)
  at process._fatalException (node.js:224:26)

My Grunt Version is:

$ grunt --version
grunt-cli v1.2.0
grunt v1.0.1

Can someone help me?

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