-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Cannot read property 'charAt' of undefined #1142
Comments
Thanks for the report - looks like one of our zillion dev dependencies has been updated and broke things. I was not able to reproduce until I deleted node_modules and reinstalled and now I see it. Hope to take a look later today. |
Thanks for update. For my purposes to run the examples, I changed the following in Gruntfile.js grunt.registerTask('server', ['docs', 'fileindex', 'jasmine:specs:build', 'connect:server', 'watch:jasmine-docs']); |
Great, glad you found a workaround for now! |
Seems to be related to some latest changes to jsdoc2md and the
Simply doing Edit Ahh, looks like you guys are way ahead of me. |
Thanks @mtraynham, I filed an issue on grunt-jsdoc-to-markdown and @75lb tracked it down to a bug in a second-level dependency of grunt-gh-pages. I didn't know that was possible. I just filed an issue minutes ago on grunt-gh-pages asking them to upgrade q-io to 2 (see link above). Testing out an npm-shrinkwrap now. |
Shrinkwrap fixes it! Will close shortly. (Just forcing q-io@2, although shrinkwrap forces you to also nail down the immediate sibling dependencies. :-/) |
Yeah... node's builtins are still global space, so assigning a new function to |
I bumped a couple of them, but certainly a PR with the rest would be helpful. I'm going to do one more beta today with this and the clip path bug you pointed out, and then hopefully do 2.0 later in the week! |
Is there an automated way to try all the latest, or do you have to look up each package? |
Awesome news on 2.0! I use npm-check-updates installed globally and then run "dependencies": {
"crossfilter2": "~1.3",
"d3": "^3"
},
"devDependencies": {
"grunt": "~1.0",
"grunt-browserify": "~5.0",
"grunt-cli": "~1.2",
"grunt-contrib-concat": "~1.0",
"grunt-contrib-connect": "~1.0",
"grunt-contrib-copy": "~1.0",
"grunt-contrib-cssmin": "~1.0",
"grunt-contrib-jasmine": "~1.0",
"grunt-contrib-jshint": "~1.0",
"grunt-contrib-uglify": "~1.0",
"grunt-contrib-watch": "~1.0",
"grunt-docco2": "~0.2",
"grunt-fileindex": "~0.1",
"grunt-gh-pages": "~1.1",
"grunt-jscs": "~2.8",
"grunt-jsdoc": "~2.0",
"grunt-jsdoc-to-markdown": "~1.2",
"grunt-lib-phantomjs": "~1.1",
"grunt-markdown": "~0.7",
"grunt-saucelabs": "~8.6",
"grunt-shell": "~1.3",
"grunt-template-jasmine-istanbul": "~0.4",
"ink-docstrap": "~1.1",
"jsdifflib": "~1.1",
"load-grunt-tasks": "~3.5",
"marked": "~0.3",
"time-grunt": "~1.3",
"uglify-js": "~2.6"
} I also want to point out that, bower is not using |
Good points. Emu was part of the old doc-chain, when we were pulling markdown directly from comments. I'll update bower.json - another oversight. Too many package systems. |
Um, I'm no expert, but I think you need to test npm dependencies on a fresh directory, i.e. I'm getting a bucket of hate on grunt@1:
|
Backing out to |
Also grunt-contrib-jshint@1 spews a bunch of (to me) nonsensical errors about function definitions using those same functions before they were defined. So I'm backing that one out as well.
|
Yeah, I mentioned the |
The latedef problem looks totally spurious, though. Usually this is a useful check - but it's labelling declarations as uses and I think that must be their bug. So I'd rather not disable it until I find out what's going on. Couldn't find anything in a quick search. |
Hrrrm, any npm-shrinkwrap.json seems to prevent npm from installing plain dependencies, i.e. d3 and crossfilter. Since grunt-copy (?) is happy skipping over files, I wouldn't have noticed, except that grunt-browserify fails. I have to put this down for today. Pushing to hotfix/2.0.0-beta.30 branch in case anyone wants to tell me what I'm doing wrong here. (I did try |
Okay, I had to explicitly shrinkwrap those two as well (in 3eaab78). This is not a great solution and I'll probably fork grunt-gh-pages if the maintainers don't respond. But I think the build is back in operation. |
Nice, @jaridmargolin has done a PR, so we can probably switch to his fork until this gets merged: |
.. and that's merged, so we have proper fix! |
npm --version: 3.8.6
node --version: 6.1.0
When running dc.js$ grunt server receive the following error output:
dc.js$ grunt server
Running "concat:js" (concat) task
Source map dc.js.map created.
File dc.js created.
Running "uglify:jsmin" (uglify) task
Running "cssmin:main" (cssmin) task
Running "copy:dc-to-gh" (copy) task
Copied 9 files
Running "jsdoc:dist" (jsdoc) task
Documentation generated to /Users/jason/Desktop/WhitelistUX/dc.js-develop/web/docs/html
Running "jsdoc2md:dist" (jsdoc2md) task
The text was updated successfully, but these errors were encountered: