gaearon / react-hot-boilerplate

Minimal live-editing example for React
MIT License
3.91k stars 879 forks source link

Unexpected token < #55

Closed mqklin closed 8 years ago

mqklin commented 8 years ago

I've just made npm install and npm start and got Unexpected token <. I can't understand, why it's not working from scratch?

aaronshaf commented 8 years ago

You are probably missing the dot files.

gaearon commented 8 years ago

Yes, you probably missed .babelrc and friends when copying the folder because they are hidden on the desktop. Please try running git clone and then running npm install in that directory.

mqklin commented 8 years ago

@gaearon, thx, fixed. You should update npm module, it doesn't contain these files.

gaearon commented 8 years ago

I'm not sure why I published it to npm at all, I should probably unpublish. npm is only useful for dependencies. There is no point installing something from npm and then changing it (npm doesn't support that), but boilerplate is meant for changing locally.

mqklin commented 8 years ago

@gaearon, so, you should either unpublish or update it, because it's non-working, and someone (like me) may lose time in attempts to make it work)

gaearon commented 8 years ago

It can't possibly work. I will unpublish it.

I'm not sure what you tried to do because people are not supposed to change code inside node_modules which is what you would do if you tried to use this boilerplate. I didn't completely understand how npm works when I published this.

mqklin commented 8 years ago

@gaearon, I still don't understand how they work. I download it from npm out of habit. Npm packages can't contain dot files?

gaearon commented 8 years ago

They can, but the NPM copy is terribly outdated so I don't even remember what's there. For boilerplates you intend to run and modify, just use git clone.