-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enumerable.from(array) is not working in angular library project #76
Comments
Sorry, no idea what causes that error, I'm not familiar with angular libraries. |
I have similar problem with Jest tests in Angular project, it has If I import
I get the following error message (points to the line with
But if I import
then the problem goes away. And when compiled with @mihaifm, does this help? Update: Just tested |
Hey @alexkunin thanks for reporting your tests, sadly it didn't worked for me. |
I have created an angular library project and I am using 'linq' in that project.
import * as Enumerable from 'linq'; Enumerable.from(array).firstOrDefault(a => a == 'somestring'); //fails at Enumerable.from
I am getting the following exception at Enumerable.from(array):
{description: "Function expected", message: "Function expected", number: -2146823286, stack: "TypeError: Function expected at Anonymous function"......."
Interestingly the same line of code works perfectly in the main angular application but not in the library. Please let me know if something needs to be handled at the library project.
Any help would be great. @mihaifm please help me
Thanks.
The text was updated successfully, but these errors were encountered: