简体   繁体   English

Dart代码在编译为JS后无法正常工作

[英]Dart code not working after compiled to JS

So.. there's something weird happening to me. 所以..我发生了一件奇怪的事情。

My code in Dartium was working perfectly until I compiled it o JS. 在Dartium中,我的代码运行良好,直到我用JS对其进行了编译。 Now only the JS version of it works.. If I compile to JS then I run the program it works. 现在只有它的JS版本可以使用。如果我编译为JS,则可以运行该程序。 But the Dart Code by itself no long works anymore :( 但是Dart代码本身不再起作用了:(

Does anyone had encountered a similar problem? 有没有人遇到过类似的问题? IS it normal? 正常吗

If necessary I can paste the entire program here.. but the problem is that Dart is not throwing me any errors and my compiled code works, so I don't know where to look at :( 如有必要,我可以将整个程序粘贴到这里。.但是问题是Dart不会向我抛出任何错误并且我的已编译代码可以正常工作,所以我不知道在哪里看:(

Thanks! 谢谢!

There were some (maybe) similar problems mentioned lately which were solved by updating to a new Dart version. 最近提到了一些(也许)类似的问题,这些问题通过更新到新的Dart版本得以解决。 If it's not that it's even weirder. 如果不是那样,那就更奇怪了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM