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

Error while running program #2

Open
elussich opened this issue Nov 19, 2015 · 2 comments
Open

Error while running program #2

elussich opened this issue Nov 19, 2015 · 2 comments

Comments

@elussich
Copy link

I'm very interested in give a try to your generator, but unfortunately I haven't been able to make it run.
This is the error I'm getting on the console if I run sassdocjs or sassdocjs --config commands:

[WARN] io.js - no yaml config file found
[ERROR] runtime.js - Error: NONDEST error @ line NaN - Cannot read property 'stack' of undefined
Stack:
61  [_error] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
52  [null] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
107 [emit] events.js
102 [errorHandler] domain.js
233 [process._fatalException] node.js

I tried creating a custom config.yaml file, based on the example provided in the repo, but the error still persisted.

If I try to run the generator onto a specific file, e.g. sassdocjs ./styles/components/_navbar.scss, this is the error stack I'm getting:

[WARN] io.js - no yaml config file found
[ERROR] main.js - Error: NONDEST error @ line NaN - ENOTDIR, not a directory '/Users/path/to/my/project/styles/objects/_navbar.scss'
Stack:
61  [_error] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
129 [null] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
197 [Domain.run] domain.js
119 [_pre] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
287 [null] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
197 [Domain.run] domain.js
278 [create] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
144 [exports.getSourceFiles] /usr/local/lib/node_modules/sassdocjs/lib/env/io.js
74  [main] /usr/local/lib/node_modules/sassdocjs/lib/main.js
3   [null] /usr/local/lib/node_modules/sassdocjs/bin/sassdocjs
[ERROR] io.js - Error: ENOENT, no such file or directory '/var/folders/2y/nsq46w317q34s_n0xd1gr0w00000gp/T/_nondest_58938_1447972437027'
Info:
path:undefined

Stack:
862 [Error] native messages.js
761 [fs.readdirSync] fs.js
99  [null] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
197 [Domain.run] domain.js
98  [_rm] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
302 [null] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
197 [Domain.run] domain.js
299 [remove] /usr/local/lib/node_modules/sassdocjs/node_modules/nondest/lib/nondest.js
320 [exports.cleanUp] /usr/local/lib/node_modules/sassdocjs/lib/env/io.js
13  [null] /usr/local/lib/node_modules/sassdocjs/lib/env/runtime.js

I installed sassdocjs both locally and globally on the system.
I tried to find information about each error individually, but they are too generic to give further insight into the problem.
I'm running Node v0.12.7 and Sass 3.4.19.

Thanks in advance for any help you may provide, and let me know of any other information you may need on my side; I'm really interested in using this tool.

Best regards.

@DaveKin
Copy link

DaveKin commented Dec 7, 2015

I'm having the same problem on Node v4.0.0

@carbondesign
Copy link

I am also getting this error

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