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"));
报错
完事了 react18的问题 目前换到react17了 import {Designer, Viewer} from "@grapecity/activereports-react";这里面的Designer没有setDataSourceTemplates方法吗? :hjyzw:
大佬牛逼
页:
[1]