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
Lighthouse's keeping up with latest LTS is starting to bump into outdated browserify deps. This issue tracks solving them without the need for workarounds, but also documents how to solve them.
Workarounds
In #12129 I bumped into two scenarios where browserify fails with relatively cryptic error messages that took a fair bit of time to decipher, so capturing here in case others run into them too.
Error: Parsing file file.js: visitor[(override || node.type)] is not a function
Summary
Lighthouse's keeping up with latest LTS is starting to bump into outdated browserify deps. This issue tracks solving them without the need for workarounds, but also documents how to solve them.
Workarounds
In #12129 I bumped into two scenarios where browserify fails with relatively cryptic error messages that took a fair bit of time to decipher, so capturing here in case others run into them too.
Error: Parsing file file.js: visitor[(override || node.type)] is not a function
Fix
Move the require outside of the instance field definition.
TypeError: baseVisitor[type] is not a function while parsing file
Fix
Revert back to older
constructor
assignmentThe text was updated successfully, but these errors were encountered: