Closed mittalabhas1 closed 6 years ago
Okay this was easy, I checked the error at the specified line and it says rt-import
must be a top level node, but doesn't this violate the rule that multiple parent nodes ain't allowed? Also do you think we can print out the error message along with the trace, so the error becomes obvious to the user?
rt-import
nodes are not considered "true nodes" as they are indeed removed from the final output, so in this sense they don't violate the rule of one single root node.
As for the error, I don't know why webpack is not picking it... it should print as any other error.
Got it. Understand your point on the final output. Yeah, the webpack not picking the error is kinda annoying as the hot build just fails and you just have to go through all the recent changes.
I'm trying to import few node modules using
rt-import
.which should compile to
But it errors out, here's the stack trace
Is import of node modules not supported in
rt-import
?