wutsi / sdui

SDUI make it easy to implement Server Driven UI pattern on flutter.
MIT License
94 stars 18 forks source link

How to use sdui package on web #73

Closed MatheusMariano closed 1 year ago

MatheusMariano commented 1 year ago

Hello, I'm trying to use this package on the web for job proposals, but I'm having a really hard time getting it done. Is there any way I can try to achieve this?

wutsi commented 1 year ago

I've never test it with web based project

MatheusMariano commented 1 year ago

When I try to run the project on the web, these two errors appear in the browser console:

SyntaxError not caught: unexpected token 'null' wrap.dart.lib.js:169 TypeError not caught: Unable to read properties of undefined (reading 'srcroute') in loadpackages__nasajon_sduisharedwidgetssduisdui_component_notifier_dart (sdui_component_notifier.dart.lib.js:53:50)

Looking at this second I found that this happens in the route widget: Uncaught TypeError: Cannot read properties of undefined (reading 'src__route')

Any idea?