The selector "ng-component" did not match any elements running Angular 8 example - angular8

I am working on the following example:
Example
I am getting a run-time error:
Error: The selector "ng-component" did not match any elements
Any idea why?
Thanks

Related

Selenium IDE - what is causing this error message ("Cannot read property 'trim' of undefined") [duplicate]

This question already has answers here:
An error has occured in 'site url': Uncaught TypeError: Cannot read property 'getColomnSet' of undefined with Selenium and Python
(2 answers)
"unknown error: cannot read property 'scrollleft' of null" in Chrome using selenium
(1 answer)
Closed 2 years ago.
I am trying to read in a count from a webpage screen with Selenium IDE using the following code. The count increments automatically on-screen.
I am encountering an error message and I'm not sure how to resolve it - I suspect I may need to define the variable but I have been unable to figure how to do it.
store value id=eas-collection-notification x
echo ${x}
storeValue on id=eas-collection-notification with value x Failed:
Cannot read property 'trim' of undefined
Can you please advise me how to make this code work? I just want to compare the number on-screen to take a further action once it reaches a defined threshold.
Thank you.

org.openqa.selenium.JavascriptException: javascript error: missing ) after argument list error when updating session storage key value using Selenium

If key value length is 11808 Unable to update session storage key value using selenium automation
Small length key values are setting but long length key values getting JS error
Manually it is working but using selenium automation getting JS error.
setItemInsessionStorage method using:
java.lang.AssertionError: org.openqa.selenium.JavascriptException: javascript error: missing ) after argument list
This error message...
java.lang.AssertionError: org.openqa.selenium.JavascriptException: javascript error: missing ) after argument list
...implies that there is a syntax error within the Javascript line of code.
A bit of more information about your usecase interms of your code block would have helped us to analyze the error in a better way. However in majority of the cases, this error is observed in the following cases:
Incase the " marks are not escaped properly. As an example:
onclick="(canLaunch('" + v.LibraryItemId + " '))"
^ escape character is missing
Ideally, the line should be:
onclick=\"(canLaunch('" + v.LibraryItemId + " '))\"
Incase the function() passed are not closed properly. As an example:
$(document).ready(function(){
}
Ideally, the line should be:
$(document).ready(function(){
});

Vega-Embed giving build error Cannot find name 'Extract' and 'Exclude'

I created angular 6 application(Using node). In this application I used vega-embed. It is giving me compilation error.
import embed from 'vega-embed';
I also changed code in util.d.ts import stableStringify = require('json-stable-stringify') but giving following error
ERROR in node_modules/vega-lite/build/src/util.d.ts(58,41): error TS2304: Cannot find name 'Extract'.
node_modules/vega-lite/build/src/util.d.ts(73,58): error TS2304: Cannot find name 'Exclude'.
Please suggest.

Apache Pig: ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: can't look backwards more than one token in this stream

I wrote a UDF that returns a string and here is a sample code:
split data into purchased IF ((boolean) (myudf(param)), failed OTHERWISE;
As an example, here is the example of that my udf returns:
split data into purchased IF ((boolean) (retcode == 'SUCCESS')), failed OTHERWISE;
Unfortunately. I get the following error:
Apache Pig: ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: can't look backwards more than one token in this stream
I also tried this:
split data into purchased IF ((boolean) '(retcode == 'SUCCESS')'), failed OTHERWISE;
I get this error:
2015-06-19 10:10:48,330 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 11, column 85> Syntax error, unexpected symbol at or near '250.00'
I also tried this:
split data into purchased IF ((boolean) '(retcode == \'SUCCESS\')'), failed OTHERWISE;
I don't get any error, but the I don't get the expected result back.
Any help with this would be great.
That error is thrown because ANTLR can't parse correctly that sentence. Pig should give you a different error showing what is the problem, like it generally does, but it seems the parsing rules for the SPLIT sentence don't take into account what happens when you try to cast the condition.
The problem here is solved simply by removing that cast to boolean:
split data into purchased IF (retcode == 'SUCCESS'), failed OTHERWISE;
That will work.
Why does the cast make it fail? That I don't know. I guess that casting the output of an expression counts as two different expressions, since it has to resolve the inner expression to apply the cast afterwards, and the syntax rule for the split operator does not allow this. 0% sure though.

Parse.FacebookUtils.init gives InvalidCharacterError

I'm getting Uncaught InvalidCharacterError: Failed to execute 'createElement' on 'Document': The tag name provided ('<iframe name="fb_xdm_frame_http"/>') is not a valid name. when I try to run Parse.FacebookUtils.init. Init code can be found at https://gist.github.com/ryansmith94/0ff03caf002fa2a8eb8b. Any ideas how I can resolve this problem?
Fixed this by changing Facebook's sdk.js code at line 46. https://developers.facebook.com/bugs/1466190186951391