You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome @speed4! 👋
Sorry you ran into a spot of trouble.
The syntax-tree packages are designed to run on Node.js 16+.
It can also be compiled to target the web, for a web target it should work on recent versions of evergreen browsers.
Chrome 42 is over 8 years old now, and hasn't been supported in years.
My suggestion would be upgrade your Chrome version, it is very insecure.
If you still want to try to make things compatible with unsupported browsers.
You are welcome to try out various transpilers like babel and swc, and polyfills like core.js.
Understand that Chrome 42 isn't a target/supported platform of unist-util-parents, so this isn't a bug.
Initial checklist
Affected packages and versions
5.1.3
Link to runnable example
No response
Steps to reproduce
Use chrome 42 to open the web page containing [email protected]
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2309.0 Safari/537.36"
Expected behavior
The console does not report any errors
Actual behavior
Uncaught TypeError: Cannot redefine property: name
Object.defineProperty(visit, 'name', {
value: 'node (' + color(node.type + (name ? '<' + name + '>' : '')) + ')'
});
Affected runtime and version
[email protected]
Affected package manager and version
[email protected]
Affected OS and version
No response
Build and bundle tools
webpack
The text was updated successfully, but these errors were encountered: