-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can`t use JsonMapper in production build for web platform #13
Comments
@fidlip |
Thanks a lot! |
Hi @k-paxian |
Hello, please solve this problem |
Hello @k-paxian , When i went into web production , the console output this one too : Do you get any ideas ? |
@jeansebastienZ sure, this issue needs some more love & attention. I'd like to mitigate it at least and this time I'm struggling to focus myself on other topics. (including latest tech layoffs, I couldn't donate extra more personal time on OSS, occasion by occasion now, small issues etc.) |
Re @k-paxian , I tried avoiding minification with --profile however it still produce the error ( As it is not possible to build web in Debug , right now it's not possible for us to use JSON MAPPER for web. |
Hello @k-paxian, |
@jeansebastienZ please try the latest version |
Hello @k-paxian , First thanks you for digging on this problem ✌🏽, as my team need this feature for going in production mode. I tried with the last version : |
Minification is a separate issue, the goal of the release was green unit tests first. |
I need this web platform support myself, particularly for the dart 3.0 capable to build web components for easy embedding. So eventually this issue would be resolved, but I cannot promise any timelines 🤷 |
Re @k-paxian , Thanks you for the info ! |
Hi @k-paxian I used --profile mode but it has error like below, could you tell me how to fix? |
Hello @likeconan , |
@jeansebastienZ Hi, |
Thank you for the workaround. I'd also be interested in a fix for the release mode, since now my JavaScript File weighs around 6Mb which takes quite long to load. Thank you! |
I'd be interested in taking a look into it. Yet I have no idea where to start, since there is no explicit web code. @k-paxian do you have a hint for me? Thank you :) |
You can start from https://pub.dev/packages/build_web_compilers |
I tried. But actually don't have a clue what I am doing 😬 |
Given this code
Everything is OK if it is built with dartdevc, but when compiled with dart2js by:
webdev serve web:43751 --hot-reload --release
with minification, it raise error:
The text was updated successfully, but these errors were encountered: