Hi,
Thanks for your repo to present the setup figma with rspack and I have also checked your issue and comments in the rspack repo.
I tried to bundle the project and run in the figma (with latest version rspack 0.2.10), but I got a black page:
I realized that it's because you commented the entry code:
document.addEventListener('DOMContentLoaded', function () {
const container = document.getElementById('__plugin') as HTMLElement;
// TODO: figure this out
// const root = createRoot(container);
// root.render(<App />);
});
So I uncomment it, then it comes the error:
So do you have any idea how to solve this?
Hi,
Thanks for your repo to present the setup figma with rspack and I have also checked your issue and comments in the rspack repo.
I tried to bundle the project and run in the figma (with latest version rspack 0.2.10), but I got a black page:
I realized that it's because you commented the entry code:
So I uncomment it, then it comes the error:
So do you have any idea how to solve this?