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

@jsx React.DOM has been deprecated => error #26

Closed
klassm opened this issue Jul 10, 2015 · 7 comments
Closed

@jsx React.DOM has been deprecated => error #26

klassm opened this issue Jul 10, 2015 · 7 comments

Comments

@klassm
Copy link

klassm commented Jul 10, 2015

node_modules/react-ace/src/ace.jsx: Line 1: The @jsx React.DOM pragma has been deprecated as of React 0.12

1 | /** @jsx React.DOM */
| ^
2 |
3 | var ace = require('brace');
4 | var React = require('react');
at File.errorWithNode (/home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/transformation/file/index.js:488:13)
at NodePath.visitor.Program (/home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/transformation/transformers/other/react.js:56:20)
at NodePath.call (/home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/traversal/path/context.js:61:28)
at NodePath.visit (/home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/traversal/path/context.js:94:8)
at TraversalContext.visitSingle (/home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/traversal/context.js:112:12)
at TraversalContext.visit (/home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/traversal/context.js:124:19)
at Function.traverse.node (/home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/traversal/index.js:72:17)
at Object.traverse as default
at PluginPass.transform (/home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/transformation/plugin-pass.js:44:27)
at File.transform (/home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/transformation/file/index.js:596:12)
at /home/klassm/IdeaProjects/react-test/node_modules/babel-loader/node_modules/babel-core/lib/babel/transformation/pipeline.js:131:19
@ ./~/react-ace/index.js 5:17-41

@andrerpena
Copy link

+1, this should be fixed

@zallek
Copy link

zallek commented Jul 21, 2015

+1 need to be fixed

@andrerpena
Copy link

@zallek , in case you don't know, this repo has it fixed. It also is exported in ES5 which is the standard: https://github.com/eccenca/react-ace-wrapper

@klassm
Copy link
Author

klassm commented Jul 26, 2015

But the artifact you get using npm is this repo, isn't it?

@andrerpena
Copy link

For the fixed version it would be npm install react-ace-wrapper. It's another repository.. not react-ace. react-ace is great but it doesn't export ES5 and has this React.DOM has been deprecated bug.

@securingsincity securingsincity added bug and removed bug labels Jul 26, 2015
@securingsincity
Copy link
Owner

This should be fixed in 2.0.2

@andrerpena
Copy link

great to hear that!

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

4 participants