-
Notifications
You must be signed in to change notification settings - Fork 43
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
component don't support webpack to build #24
Comments
Hi kidyfirst. Is it possible that you could gist (or jsbin) your files so I can better understand the issue? |
I think @kidyfirst is experiencing the same issue I had, which I asked about in #22 and gave a sample PR for in #23. |
+1 |
+1 |
@jeffkole Installing from that fork, I get this error from webpack:
I think it's just out of date with React (not surprising since it's been 2.5 years). But it basically means this package isn't usable with modern dev environments. |
i install your component by npm install --save react-menu and use it according your demo.
but it throw error when i build my project by webpack.
ERROR in ./~/react-menu/lib/components/MenuOption.js
Module parse failed: F:\src\tencentGit\mad-ui-richinput\node_modules\react-menu\lib\components\MenuOption.js Line 68: Unexpected token <
You may need an appropriate loader to handle this file type.
| render: function() {
| return (
| <div
| onClick={this.handleClick}
| onKeyUp={this.handleKeyUp}
maybe your component should't not include the jsx or webpack don't support to build npm dependence.
The text was updated successfully, but these errors were encountered: