x154 发表于 2024-4-2 14:01:41

error


import React from "react";
import ReactDOM from "react-dom";
import "@grapecity/activereports/styles/ar-js-ui.css";
import "@grapecity/activereports/styles/ar-js-designer.css";
import { Designer as ReportDesigner } from "@grapecity/activereports/reportdesigner";
import '@grapecity/activereports-localization-zh';


const initDesigner = (designerHostSelector) => {
new ReportDesigner(designerHostSelector,{language:"zh"});
};
function App() {
React.useEffect(() => initDesigner("#designer-host"), []);
return (
    <div id="designer-host">
    </div>
);
}

ReactDOM.render(<App />, document.getElementById("root"));
报错

x154 发表于 2024-4-2 14:01:42

完事了 react18的问题 目前换到react17了

x154 发表于 2024-4-2 14:07:37

import {Designer, Viewer} from "@grapecity/activereports-react";这里面的Designer没有setDataSourceTemplates方法吗?

Felix.Li 发表于 2024-4-2 18:03:55

:hjyzw:
大佬牛逼
页: [1]
查看完整版本: error