thomasboyt / react-spin

React component wrapper for spin.js
27 stars 23 forks source link

Error when building with browserify #4

Closed chadly closed 9 years ago

chadly commented 9 years ago

I'm trying to use your component and getting an error when using browserify:

Error: Parsing file node_modules\react-spin\src\main.js: Unexpected token (29:6)

Specifically, I am running into this problem.

It can be fixed by running the jsx transform before publishing to npm OR adding the following to your package.json:

"browserify": {
  "transform": ["reactify"]
}

I think this is the same issue that #3 is trying to address.

captDaylight commented 9 years ago

+1 getting the same error

rdjpalmer commented 9 years ago

+1, same error with webpack

thomasboyt commented 9 years ago

Should be fixed in 0.4.0 just published to NPM, sorry for the delay

9mm commented 8 years ago

I'm getting the same problem except with webpack, not quite sure to go about fixing that.

9mm commented 8 years ago

My bad I didnt see 0.4.0 was the latest (github is at 0.3.0)