Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel Error #51

Closed
ponty96 opened this issue Feb 3, 2016 · 9 comments
Closed

Babel Error #51

ponty96 opened this issue Feb 3, 2016 · 9 comments

Comments

@ponty96
Copy link

ponty96 commented Feb 3, 2016

Babel showing this error in /node_modules/react-scroll/lib/mixins/Helpers.js

Line 116: Unexpected token <
You may need an appropriate loader to handle this file type.
className = this.props.className
}
return <Component {...this.props} {...this.state} className={className} onClick={this.handleClick} />
}
});

@fisshy
Copy link
Owner

fisshy commented Feb 3, 2016

Will look into it tonight.

@ponty96
Copy link
Author

ponty96 commented Feb 3, 2016

please do man, thou I'm looking @ a possible fix. If I get one, I'll submit a PR

@fargerio
Copy link

fargerio commented Feb 4, 2016

Probably related:
babel gives me an error even earlier in the same file, somehow babel does not accept the ES6 Syntax in Helpers.js:

const { bool, object, string, func, number } = React.PropTypes;
      ^

SyntaxError: Unexpected token {

@fisshy
Copy link
Owner

fisshy commented Feb 4, 2016

thanks, will look into it. Somthing came up yesterday, will try to solve it today.

@ponty96
Copy link
Author

ponty96 commented Feb 6, 2016

okay. @fisshy any possible fix yet?

@wavymav
Copy link

wavymav commented Feb 6, 2016

I'm having the same problem

@fisshy
Copy link
Owner

fisshy commented Feb 6, 2016

Sorry for the delayed fix guys

fixed in v1.0.1 on npm or 2a492f5 for the code

@fisshy fisshy closed this as completed Feb 6, 2016
@mmahalwy
Copy link
Contributor

mmahalwy commented Feb 7, 2016

@fisshy having same problem too... even with 1.0.1

/Users/mmahalwy/Desktop/quran/quran.com-frontend/node_modules/react-scroll/lib/mixins/Helpers.js:6
const { bool, object, string, func, number } = React.PropTypes
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:404:25)
    at Module._extensions..js (module.js:432:10)
    at require.extensions.(anonymous function) (/Users/mmahalwy/Desktop/quran/quran.com-frontend/node_modules/babel-register/lib/node.js:138:7)
    at Object._module3.default._extensions.(anonymous function) [as .js] (/Users/mmahalwy/Desktop/quran/quran.com-frontend/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:250:71)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/mmahalwy/Desktop/quran/quran.com-frontend/node_modules/react-scroll/lib/components/Link.js:5:15)

@fisshy
Copy link
Owner

fisshy commented Feb 7, 2016

Fixed thanks to @mmahalwy 7ae01d4 and v1.0.2 on npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants