Paciolan / remote-component

Dynamically load a React Component from a URL
MIT License
599 stars 48 forks source link

Doubt on render method using typescript #43

Open fernando-tiburcio opened 3 years ago

fernando-tiburcio commented 3 years ago

Hello guys, I need some help please!!!

I tried to use Remote Component in a CRA project with typescript, all the types looks good but when I try to use de render method I've got an error of type that I don't understand and don't know to fix

I used the CRA method, creating the files [RemoteComponent.ts / remote-component.config.ts] on src folder, mount a simple page application inside the app.tsx file (on the src) and create one separated component to remoteComponent like the images below.

Component component

remote-component.config.ts remote-component config

and finally remoteComponent.ts remoteComponent

this is the error Captura de tela de 2021-08-26 17-56-16

if anyone can help me, i will be eternally grateful

joelnet commented 2 years ago

This is difficult to debug without a repository. Do you have a public repository online I can checkout and debug?