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 loading gruntfile: Gruntfile not found #95

Open
ghost opened this issue Jan 12, 2017 · 6 comments
Open

Error loading gruntfile: Gruntfile not found #95

ghost opened this issue Jan 12, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Jan 12, 2017

Tried multiple things; with/without root, forward/backslash, with/without .js ext and case sensitivity. Also tried npm install after removing the node_modules folder. The gruntfile tasks work OK through cmd.

I can confirm however the gruntfile is there. If I copy the path that it provides it resolves immediately.

grunt

Could it be a syntax issue or the way my gruntfile is composed?

@kokarn
Copy link
Owner

kokarn commented Jan 13, 2017

I think it's because it's not in the root of the project. Could you try to move it there?

If that doesn't help, please make sure it's not a duplicate of #10 or #20 :)

@ghost
Copy link
Author

ghost commented Jan 13, 2017

I've just copied it into the root, same issue. Tried those things listed in my initial post to no avail. Could there be a conflict with other packages perhaps?

atom-beautify / atom-jshint / file-icons / highlight-selected / linter / minimap / npm-install / simple-drag-drop-text

Wouldnt prepending the subfolder under Gruntfile Paths counter the root requirement?

@kokarn
Copy link
Owner

kokarn commented Jan 16, 2017

It would, in some cases. There's been quite a lot of discussion and fixes for the Gruntfile path and right now it's actually supported to not have it in root (#70).

I think the problem this time is with your actual path. Could you try to move it to a folder you can actually share? By the looks of it, it's mixing slashes (which shouldn't be a problem) but we've had issues with stuff like spaces before (which also should work).

@ghost
Copy link
Author

ghost commented Jan 16, 2017

Sorry! Cloned it to local now and I can actually share the whole thing. :-)

gruntatom

I left a copy of the gruntfile in the root for reference.

@kokarn
Copy link
Owner

kokarn commented Apr 26, 2017

Hmm, I see. Probably related to nesting but not really sure how and why. Might need to look through the code that finds Gruntfiles at some point...

@freddyyeddy
Copy link

Any fix for this yet?

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

2 participants