WRidder / react-spa

Community site SPA based on ReactJS
http://react-spa.herokuapp.com/
MIT License
297 stars 34 forks source link

Errors running gulp #5

Closed CodisRedding closed 9 years ago

CodisRedding commented 9 years ago
ERROR in ./src/libraries/foundation.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./../../bower_components/foundation/js/foundation.min in /Users/rocky/Src/react-spa/src/libraries
 @ ./src/libraries/foundation.js 1:0-86
[13:00:20] Plumber found unhandled error:
 Error in plugin 'gulp-sass'
Message:
    stdin:7: file to import not found or unreadable: "./../../bower_components/foundation/scss/normalize"
Current dir:
WRidder commented 9 years ago

Thanks! Will look into it :) You did run bower install successfully?

CodisRedding commented 9 years ago

Yes I did and thanks!

WRidder commented 9 years ago

I made some updates regarding path resolving with webpack. Can you check if it works with the current version?

If not; can you make sure those files are available in `bower_components' and what platform are you using?

CodisRedding commented 9 years ago

Hi @WRidder,

unfortunately i'm still getting errors. Hopefully this is enough info to help.

pastebin to gulp install: http://pastebin.com/nWLmjS0W screen shot from browser tools: http://screencast.com/t/9TZbjLz0

WRidder commented 9 years ago

Hm, not really unfortunately. Will try to replicate it though; can you comment on my last question?

CodisRedding commented 9 years ago

hmm, sorry about that.

screen shot of bower_components: http://screencast.com/t/L8VxBaWfV osx Yosemite 10.10.1, iTerm / zsh

WRidder commented 9 years ago

Alright, thanks! Seems fine to me. I just tested a fresh checkout on both Windows and Linux which work fine. At the moment I don't have a Mac at my disposal. Will see if I can get my hands on one to test it out.

If anyone else in the meantime is able to try and run it on OSX, that'd be great.

WRidder commented 9 years ago

Alright, got my hands on one. Still version 10.8.5 though, so first I'll update it to Yosemite. Will keep you posted.

CodisRedding commented 9 years ago

If it does, let's compare tool versions

WRidder commented 9 years ago

Just installed a fresh checkout on Yosemite and it all works fine. Using the latest npm, node and gulp. I did just remove material-ui-sass from the repo though, that might make a difference.

WRidder commented 9 years ago

I will change the way foundation is loaded though, that may solve your problem as well. Will do that somewhere today.

WRidder commented 9 years ago

Alright, just changed. Wondering if this changes anything for you.

CodisRedding commented 9 years ago

I tried again, this time it's missing dir

[07:34:13] Plumber found unhandled error:
 Error in plugin 'gulp-sass'
Message:
    stdin:7: file to import not found or unreadable: "./../../bower_components/foundation/scss/normalize"
Current dir:

I looked the scss dir and sure enough it doesn't exist.

These are the cmd's I'm running:

  1. npm install in the base dir
  2. npm install and in the ./server dir
  3. bower install in the base dir
  4. gulp in the base dir
WRidder commented 9 years ago

Those commands should be just fine. Isn't there any foundation folder at all, or is it just missing the scss folder?

CodisRedding commented 9 years ago

it's erroring trying to find this dir ./../../bower_components/foundation/scss/normalize

WRidder commented 9 years ago

That's not a dir, it's a file called normalize.scss. Bower is supposed to checkout this repository: https://github.com/zurb/bower-foundation

WRidder commented 9 years ago

@fourq Did you manage to get it to work by any chance?

CodisRedding commented 9 years ago

@WRidder I didn't sorry.