Syntax errors

18 views
Skip to first unread message

Scott Nelson

unread,
Nov 21, 2013, 11:38:32 AM11/21/13
to compo...@googlegroups.com
When there's a syntax error in a component the error has no real line number since it fails during the eval:

require.register("mymodule/index.js", Function("exports, require, module", "

... synax error in here somewhere ...

"));

Is there any way around this?

Jan Buschtöns

unread,
Nov 21, 2013, 12:22:38 PM11/21/13
to compo...@googlegroups.com
Potentially yes. If we were to change the way of embedding the modules in the build file. There might already exist an issue on that.
Sent from an iPhone, so please excuse shitty spelling.


--
You received this message because you are subscribed to the Google Groups "component" group.
To unsubscribe from this group and stop receiving emails from it, send an email to componentjs...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

ericgj

unread,
Nov 21, 2013, 12:31:47 PM11/21/13
to compo...@googlegroups.com
Usually when I run into that I do `component build`  without the --dev option, which gives you the modules straight in the build file. Of course then you don't get dev deps but at least you can track down the syntax error first. Probably many better ways to do it but that's one option.

Reply all
Reply to author
Forward
0 new messages