OhMad
OhMad

Reputation: 7299

AngularDart - pub build "Uncaught SyntaxError: Unexpected token )"

I built my angulardart app using pub build, and uploaded the files to my server. So the page is blank and the only error I get from the console is the following:

main.dart.js:10238 Uncaught SyntaxError: Unexpected token )

the chrome debugger points me to the following line in the main.dart.js file:

else (function(b){H.n0(F.mS(),b)})([])})})()

I triple checked my code and on my machine the build works fine. Any fixes?

Thanks in advance

Upvotes: 2

Views: 282

Answers (1)

Harry Terkelsen
Harry Terkelsen

Reputation: 2714

dart2js should never produce syntactically invalid JavaScript. If you can share your source code or create a small example program that has the problem, please file an issue: https://github.com/dart-lang/sdk/issues/new

Upvotes: 1

Related Questions