-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
v7.12.0 update throws AssertionError [ERR_ASSERTION]: Node must be provided when reporting error if location is not provided at assertValidNodeInfo #2095
Comments
cc @alexzherdev |
Could you provide the code that leads to this? |
I'm seeing this too. I use react-router which passes location and match as props. When I compare the location search, it throws this error: componentDidUpdate(prevProps) {
const { match, location} = this.props;
const searchEquals = prevProps.location.search === location.search;
...
} |
Example const React = require('react');
const PropTypes = require('prop-types');
class MyComponent extends React.PureComponent {
componentDidUpdate(prevProps) {
const { items } = this.props;
const hasNewImage = items.length > prevProps.items.length;
}
render() {
return null;
}
}
MyComponent.propTypes = {
items: PropTypes.array,
};
module.exports = MyComponent; #2099 fixes this bug |
Closed in #2099. |
Hi, I am still getting this issue with 7.12.1. Am I the only one? I made sure the package was updated correctly. Thanks for all the hard work! |
@nicofrand can you file a new issue with the details? |
Well, I have the exact same error (line numbers etc.). I don't know what I should provide? |
Specifically, the code that makes it crash - but if it’s generating the same error, then I’ll reopen. |
I narrowed it down to this file: https://framagit.org/kresusapp/kresus/blob/master/client/components/lazyLoader.js Thanks for reopening. |
More than 9 hours after I’ve merged it, I’m sure. Releases, as always, are done when a maintainer has time, and can’t be done any faster. |
@ljharb thanks for the update. Just to clarify, I wasn't trying to be pushy, I was just curious as the error is blocking our automation and we can take other steps if a release isn't planned in the near future. Apologies if it came off that way |
I’ll try to find time today. |
Yes, it is fixed for me in v7.12.4 |
It fixed. |
I'm not sure why that would fix it, but either way, resolutions isn't an npm feature, and overriding dependency versions is not a good idea. |
v7.12.0 is throws the following error
The text was updated successfully, but these errors were encountered: