authorship
authorship copied to clipboard
Missing `lodash` dependency declaration causes error in latest version of Gutenberg plugin
Recently Gutenberg finished removing all usage of lodash
: https://github.com/WordPress/gutenberg/issues/17025#issuecomment-1632633444
Because the editor scripts in Authorship still rely on lodash, but it's not declared as a dependency, they fail in the latest version of the Gutenberg plugin:
Uncaught ReferenceError: lodash is not defined
It would be good to either rewrite code that depends on lodash or declare it as a dependency.
Looks like uses are confined to the AuthorsSelect.tsx
https://github.com/humanmade/authorship/blob/develop/src/components/AuthorsSelect.tsx file