authorship icon indicating copy to clipboard operation
authorship copied to clipboard

Missing `lodash` dependency declaration causes error in latest version of Gutenberg plugin

Open goldenapples opened this issue 1 year ago • 1 comments

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.

goldenapples avatar Sep 08 '23 20:09 goldenapples

Looks like uses are confined to the AuthorsSelect.tsx https://github.com/humanmade/authorship/blob/develop/src/components/AuthorsSelect.tsx file

tomjn avatar Sep 25 '23 10:09 tomjn