next: 12.3.2
node: 20.11.1
react: 17.0.2
useEffect(function () {
loadAuthFill();
}, []);
const loadAuthFill = async () => {
appovalRef.current = await import('@ctrip/corp-bizComp-authprocess/dist/static/authProcess.js');
};
the package which was about to import exports a object like this:
enter image description here
- I tried to import the package with dynamic api, but it didn’t work out like I expected. I expect
that the package returns a object with Init, Submit function in the object