Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Remove all occurrences of styled components' .extend #216

Closed
IreneStr opened this issue Apr 10, 2019 · 2 comments
Closed

Remove all occurrences of styled components' .extend #216

IreneStr opened this issue Apr 10, 2019 · 2 comments

Comments

@IreneStr
Copy link
Contributor

IreneStr commented Apr 10, 2019

Since .extend is deprecated in the newest version of styled components, and we updated to the latest styled components in #184, we need to replace all occurrences of .extend by styled().

Errors:

shared.js?02af:120 Uncaught TypeError: InputContainer.extend is not a function
    at eval (shared.js?02af:120)
    at Object../node_modules/@yoast/search-metadata-previews/src/shared.js (components-110-RC3.js?ver=11.0-RC3:3361)
    at __webpack_require__ (commons-110-RC3.js?ver=11.0-RC3:79)
    at eval (SnippetPreview.js?471d:21)
    at Object../node_modules/@yoast/search-metadata-previews/src/snippet-preview/SnippetPreview.js (components-110-RC3.js?ver=11.0-RC3:3505)
    at __webpack_require__ (commons-110-RC3.js?ver=11.0-RC3:79)
    at eval (index.js?9f88:3)
    at Object../node_modules/@yoast/search-metadata-previews/src/index.js (components-110-RC3.js?ver=11.0-RC3:3349)
    at __webpack_require__ (commons-110-RC3.js?ver=11.0-RC3:79)
    at eval (components.js?05e8:8)
@IreneStr
Copy link
Contributor Author

Possibly related: Yoast/wordpress-seo#12641

@IreneStr
Copy link
Contributor Author

This was caused by an out-of-date node_modules folder

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant