schovi / react-iscroll

React component for wrapping iScroll http://iscrolljs.com/
MIT License
236 stars 60 forks source link

Can't get example working #16

Closed vincentwyshan closed 8 years ago

vincentwyshan commented 8 years ago

ReferenceError: Unknown plugin "syntax-class-properties" specified in "/Users/cada/Downloads/react-iscroll-master/.babelrc" at 1, attempted to resolve relative to "/Users/cada/Downloads/react-iscroll-master"

schovi commented 8 years ago

That is odd. Try to remove node_modules, pull newest version and install packages from scratch.

timdoes commented 8 years ago

I am getting the same error on v.0.1.7

schovi commented 8 years ago

Hello after long time.

I did huge update to version 1, can you try it https://github.com/schovi/react-iscroll/pull/17

dhammikas commented 8 years ago

Guys, Is this issue fixed now? I'm kinda still getting it, it seems

schovi commented 8 years ago

@dhammikas hey. Are you trying latest 1.0.0 version? If you updated from older version maybe you need to remove node_modules and install them again. I had problem there too.

Cloud33 commented 8 years ago

@schovi I used 1.0.0 version, but there is a @vincentwyshan problem, error: npm ERR! node v4.2.1 npm ERR! npm v2.14.7 npm ERR! code ELIFECYCLE npm ERR! react-iscroll@1.0.0 compile: babel -d dist/ src/ npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-iscroll@1.0.0 compile script 'babel -d dist/ src/'. npm ERR! This is most likely a problem with the react-iscroll package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! babel -d dist/ src/ npm ERR! You can get their info via: npm ERR! npm owner ls react-iscroll npm ERR! There is likely additional logging output above.

Because the package.JSON configuration causes?

schovi commented 8 years ago

Back after some time. Try it again with this branch https://github.com/schovi/react-iscroll/tree/feature/update-dev-dependencies where I updated all dev dependencies to latest version. If problem persists, give me your node version, npm version and try to run babel --version (it will work only if you have babel installed globally and maybe that can cause problem).

adityasaxena commented 8 years ago

@schovi the branch does work with the additional babel plugin. thanks!

schovi commented 8 years ago

@adityasaxena Merged and published https://github.com/schovi/react-iscroll/tree/1.0.2