Skip to content
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 ] TypeError item.priority.toFixed not a function #393

Open
rafawashere opened this issue Jun 2, 2022 · 0 comments
Open

[ BUG ] TypeError item.priority.toFixed not a function #393

rafawashere opened this issue Jun 2, 2022 · 0 comments

Comments

@rafawashere
Copy link

rafawashere commented Jun 2, 2022

Describe the bug
item.priority.ToFixed is throwing a TypeError in /dist/lib/sitemap-item-stream.js

Expected behavior
The item.priority is type is unknown and is trying to add to a number type.

Context:

  • Library Version [e.g. 3.2.2]

Additional context
In my local version, I was able to resolve the issue by placing a primitive wrapper object.
item.priority.toFixed(1) => Number(item.priority).toFixed(1)

@rafawashere rafawashere changed the title TypeError item.priority.toFixed not a function [BUG] TypeError item.priority.toFixed not a function Jun 2, 2022
@rafawashere rafawashere changed the title [BUG] TypeError item.priority.toFixed not a function [ BUG ] TypeError item.priority.toFixed not a function Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant