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

Keeps crashing #2

Closed
blaiz opened this issue Sep 16, 2014 · 3 comments
Closed

Keeps crashing #2

blaiz opened this issue Sep 16, 2014 · 3 comments

Comments

@blaiz
Copy link

blaiz commented Sep 16, 2014

Hi,

I can't get this plug-in to work. I've tried a few different configurations and this plug-in always crashes. I tried this:

    requireRev: {
      develop: {
        expand: true,
        cwd: 'build/develop',
        src: [
          'features/foobar.js',
          'features/foobar-controller.js'
        ]
      }
    }

where foobar requires foobar-controller as a dependency. I've gotten 2 different error messages depending on the configuration. This one:

Running "requireRev:expand" (requireRev) task
Warning: Object true has no method 'indexOf' Use --force to continue.

And this one:

Warning: Cannot read property 'source' of undefined Use --force to continue.
TypeError: Cannot read property 'source' of undefined
    at Object.<anonymous> (/foo/node_modules/grunt-require-rev/tasks/requireRev.js:323:87)
    at Object.<anonymous> (/foo/node_modules/grunt/lib/grunt/task.js:264:15)
    at Object.thisTask.fn (/foo/node_modules/grunt/lib/grunt/task.js:82:16)
    at Object.<anonymous> (/foo/node_modules/grunt/lib/util/task.js:301:30)
    at Task.runTaskFn (/foo/node_modules/grunt/lib/util/task.js:251:24)
    at Task.<anonymous> (/foo/node_modules/grunt/lib/util/task.js:300:12)
    at /foo/node_modules/grunt/lib/util/task.js:227:11
    at process._tickCallback (node.js:419:13)
    at Function.Module.runMain (module.js:499:11)
    at startup (node.js:119:16)
    at node.js:906:3

Have you seen that before? do you know how to resolve it?

@MichaelKubovic
Copy link

Hey there, have you ever solved this problem?

@heavymery
Copy link
Owner

@blaiz @MichaelKubovic Hey guys, sorry for late response :)

What version of node.js are you using?
And could you show me sample code of features/foobar.js and features/foobar-controller.js?

@blaiz
Copy link
Author

blaiz commented Sep 19, 2015

Wow, that was a year ago. I don't remember what project this happened on. I don't think I ever resolved this issue. If no one can reproduce it, feel free to close this issue.

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

3 participants