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

Newer NodeJS Support (v4.x) #145

Open
nhorvath opened this issue Oct 31, 2015 · 1 comment
Open

Newer NodeJS Support (v4.x) #145

nhorvath opened this issue Oct 31, 2015 · 1 comment

Comments

@nhorvath
Copy link

I had to upgrade my node but now docular is broken. Any chance that newer versions of Node will be supported?

Using 4.2.1 I get this error if I include anything in my group's documentation (removing everything finishes file).
Error: EISDIR: illegal operation on a directory, read
at Error (native)
From previous event:
at Class.extend.loadFiles (...project path.../node_modules/docular/lib/scripts/core/group.js:152:18)
at node.js:961:3
{ [Error: EISDIR: illegal operation on a directory, read] errno: -21, code: 'EISDIR', syscall: 'read' }

@nhorvath
Copy link
Author

I want to post a workaround for anyone who comes across this:

                    sections: [
                        {
                            id: "myapi",
                            title: "Project API",
                            scripts: grunt.file.expand({}, userConfig.app_files.js),
                            docs: [
                            ],
                            rank : {}
                        }
                    ]

userConfig.app_files.js is a list of file glob patterns that match all my angular js files that I already used to concatenate and and minify elsewhere in the build. The important thing is you don't pass any directories to docular or it tries to read them like a file and blows up.

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