ericmdantas / generator-ng-fullstack

Client, server or fullstack - it's up to you. ng-fullstack gives you the best of the latest.
MIT License
704 stars 103 forks source link

Gulp Error: Unrecognised input. Possibly missing opening #45

Closed FreakTheMighty closed 9 years ago

FreakTheMighty commented 9 years ago

When I run gulp in the root of the project I get this error:

[17:08:08] Working directory changed to ~/Code/time-tracker
[17:08:09] Using gulpfile ~/Code/time-tracker/gulpfile.js
[17:08:09] Starting 'del_temp'...
[17:08:09] Finished 'del_temp' after 4.51 ms
[17:08:09] Starting 'partials:temp'...
[17:08:09] Starting 'views:temp'...
[17:08:09] Starting 'imgs:temp'...
[17:08:09] Starting 'fonts:temp'...
[17:08:09] Starting 'html,css,js:temp'...
[17:08:09] Starting 'bower'...
[17:08:09] Starting 'browser_sync'...
[17:08:09] Finished 'browser_sync' after 279 μs
[17:08:09] Finished 'partials:temp' after 78 ms
[17:08:09] Finished 'fonts:temp' after 72 ms

/Users/jvanderdoes/Code/time-tracker/node_modules/gulp-less/node_modules/accord/node_modules/when/lib/decorators/unhandledRejection.js:80
        throw e;
              ^
Error: Unrecognised input. Possibly missing opening '{' in file /Users/jvanderdoes/Code/time-tracker/css/styles.min-04deeee6.css line no. 5

I'm not very familiar with gulp, but it appears the less task is attempting to glob a directory that isn't there with this line var _less = DEV_DIR + 'css/**/*.less';.

ericmdantas commented 9 years ago

Hello.

Do you have anything inside your client/dev/css folder?

FreakTheMighty commented 9 years ago

@ericmdantas I do

$ ls client/dev/css/
events.less         media_queries.less
fonts.less          position.less
frameworks_overrides.less   styles.less

I don't see the file it is complaining about time-tracker/css/styles.min-04deeee6.css

ericmdantas commented 9 years ago

Alright, I'll take a look at it when I get home.

ericmdantas commented 9 years ago

I did get the error at first, but then it didn't happen again.

ericmdantas commented 9 years ago

Turns out the problem is with bootstrap's version 3.3.5 version.

Could you please change the version of your bootstrap in the bower.json?

From:

"bootstrap": "~3.3.1",

To:

"bootstrap": "3.3.1",

and the run bower install again, please.

ericmdantas commented 9 years ago

Also, here's the bootstrap issue.

FreakTheMighty commented 9 years ago

:+1: that worked, thank you

ericmdantas commented 9 years ago

Good to know =]

aendra-rininsland commented 8 years ago

Note, this was a breaking issue for me installing via npm install -g generator-ng-fullstack as per the documentation. Given it's now fixed in master, I'd very much recommend doing a new release ASAP so as not to dissuade new users, or at least signpost this issue in the README.

Super cool generator otherwise! Looking forward to using it!

ericmdantas commented 8 years ago

@aendrew Hello, thanks!

It should be fixed now, it's been a while as bootstrap 3.3.1 in the bower.json.

aendra-rininsland commented 8 years ago

Odd; I got 1.4.0 from a NPM install, but now have 1.5.1-0 via npm install generator-ng-fullstack@latest. Not sure why it gave me the older version (maybe you need to do a npm publish? No idea.); apologies, working fine now, please disregard!

ericmdantas commented 8 years ago

That's probably because of the pre-release thing, I'm moving some things around and I'll release the 1.5 soon.