-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
【Help】Using the export keyword between a decorator and a class is not allowed. Please use export @dec class
instead
#3
Comments
Please leave the complete code so that it can be reproduced. |
I fail to see there's anything wrong. Please check this commit out. |
import React from 'react';
import { connect } from 'react-redux';
const ConditionModal = loadable(() => import('components/ConditionModal'));
@connect((state) => {
return {
};
})
export default class MyComponent extends React.Component {
componentDidMount() {}
render() {
const {
visible,
} = this.props;
return (
<>
{!!visible && (true)}
{true && <ConditionModal />}
</>
);
}
} |
Swc4jTranspileOptions options = new Swc4jTranspileOptions() |
Swc4jParseOutput parseOutput = swc4j.parse(script, options); |
com.caoccao.javet.swc4j.exceptions.Swc4jCoreException: Using the export keyword between a decorator and a class is not allowed. Please use @connect((state) => {
|
I hope this can help you to figure it out. |
Please set the media type to |
测试OK Tsx完全兼容Jsx ? Jsx都可以用Tsx来解析? |
I think it's your decision to parse the templates as Jsx or Tsx. |
请问该如何设置才能正常解析
有一个相关的issue:babel/babel-eslint#662
解决方式:
这个在Options里面没有对应的选项
The text was updated successfully, but these errors were encountered: