-
Notifications
You must be signed in to change notification settings - Fork 25
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
Could not resolve "croner" - Error while bundling for production #163
Comments
Thank you for reporting this. Need to think how to approach this, I was hoping that lazy-loading it would help keep the dependency optional, but looks like bundlers are resolving it eagerly anyway. |
Meanwhile, are you rolling out another version that reverts this, or do you recommend we downgrade to 2.0.0? |
downgrading to 2.1.1 should suffice, but I'll work on this tomorrow |
@kibertoad Just depend it 😄 I won't add any third party dependencies - ever. It's small. And bundlers will tree-shake if needed 👍 |
@kibertoad, Any update regarding this one? Actually @Hexagon had a really good point ;) |
yeah, had few ideas, will try them out soon, but worst case scenario just make croner a direct dependency |
@rdzidziguri you can already include croner in your package.json and make error go away |
Sure, that is the way, but we have strict rules regarding dependencies, mainly not including this way bundlers will. The good thing is that Croner has zero dependencies and is very tiny, so we are evaluating its effect on projects, especially in bundle sizing. |
my concern exactly. will try finding the way to avoid including it |
@rdzidziguri Sorry it took so long, but - going forward solution will be extracting cron-related logic into a separate optional package, as I don't think there is a nicer solution available. How bad was the impact on the bundle size after including Croner? would you recommend just making it a runtime dependency? |
While trying to build production, the following error is being thrown that prevents from building the application. This has never been an issue and has always worked with the
2.0.0
version. Worth to mention that I am not using any Cron expression-based jobs, so this thing is a regression, most probably because the file where the error is being thrown is added 2 weeks ago only.The text was updated successfully, but these errors were encountered: