-
Notifications
You must be signed in to change notification settings - Fork 156
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
BUG: global is not defined since angular v6 #208
Comments
@mischahaenen hi! I'm not very familiar with Angular application build process anymore, at least it seems to be build process related issue. |
@harrisiirak I think this is by mistake. cron-parser is using this tree: has-symbols is using global in index.js:
However, I didn't see any usage of is-nan in cron-parser code. Can this dependency be removed? |
@harrisiirak My mistake. It is used, but is it replaceable by something else? or do you know a way to override that in browser? |
@amiram |
Hello @contributors
I am currently using your great project to convert cron expressions. When I've installed it, I had the error that global was not defined. I had a small workaround for this bug. I defined global myself in polyfills.ts. with (window as any).global = window;. Since angular v6, global is not defined by default. I was looking for another solution but found none, but I came across this comment:
angular/angular-cli#9827 (comment)
So is there a way that you can provide the global context? I think I'm not the only angular developer which faces this problem. And a solution from your side would save much time and saves some frustrated developers.
Thanks for your great work! 🚀
The text was updated successfully, but these errors were encountered: