Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dart_LoadScriptFromKernel: The binary program does not contain 'main'

I just run this code in VsCode and show this problem

Dart_LoadScriptFromKernel: The binary program does not contain 'main'.

Dart version:2.3.2

void main() {
  print("hello");
}

is there any wrong with configuration? screenshot

like image 301
jiepeng yan Avatar asked Jun 20 '19 08:06

jiepeng yan


1 Answers

try saving it in your folder it works 100% and name it main

like image 176
jaffardebsawi Avatar answered Sep 30 '22 14:09

jaffardebsawi