-
Notifications
You must be signed in to change notification settings - Fork 75
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
Unexpected character '#' #6
Comments
Hey, really sorry about that @bramdevries, I had the package.json pointing to the |
Just updated to 0.3.1 and now I get the following:
Seems like it's going wrong here: https://github.com/casesandberg/reactcss/blob/master/src/inline.coffee#L4 |
Hey @bramdevries, There was a legacy require in there, it should be fixed now if you update to |
Hmm it's solved the compile errors, but now I'm getting runtime errors: import ReactCSS from 'reactcss';
export default class SideMenu extends ReactCSS.Component {
classes() {
return {
'default': {
sidemenu: {
background: 'red'
}
}
}
}
render() {
return (
<div is='sidemenu' />
);
}
}; Gives this error:
|
Does adding this make it work?
Or are you not importing react where you are rendering it? |
Okay so doing this worked: import React from 'react/addons';
import ReactCSS from 'reactcss';
export default class SideMenu extends ReactCSS.Component {
classes() {
return {
'default': {
sidemenu: {
background: 'red'
}
}
}
}
render() {
return (
<div style={this.styles().sidemenu}>
<p>Test</p>
</div>
);
}
}; The documentation doesn't mention having to import both |
You are totally right, that is my bad. I will update that now! Thanks for working through this with me |
Giving this a test-drive and am getting blocked by the following error:
Here's the code I'm using (compiled with Browserify and Babel, using NPM3):
Not sure what I'm doing wrong? Maybe it's something to do with NPM3?
The text was updated successfully, but these errors were encountered: