Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with WordPress 6.6 RC1 #210

Open
elzadj opened this issue Jul 1, 2024 · 1 comment
Open

Incompatibility with WordPress 6.6 RC1 #210

elzadj opened this issue Jul 1, 2024 · 1 comment

Comments

@elzadj
Copy link

elzadj commented Jul 1, 2024

Description

Looks like typesense-instantsearch-adapter 2.8.0 doesn't work on WordPress 6.6 RC1. 2.9.0-3 has the same problem.
Please refer to this issue WordPress/gutenberg#62923 (comment)

Our plugin where we use typesense:
https://github.com/maxi-blocks/maxi-blocks
https://wordpress.org/plugins/maxi-blocks/

Steps to reproduce

Try to use typesense-instantsearch-adapter 2.8.0 / 2.9.0-3 on WordPress 6.6RC1

Expected Behavior

Same as on WordPress 6.5.5:
screenshot-maxithemedev dev600 com-2024 07 01-14_51_44

Actual Behavior

The Template Library block crashes with

loadable.esm.mjs:377 Uncaught 
TypeError: Cannot read properties of undefined (reading 'mark')
    at SearchRequestAdapter.js:518:1
    at SearchRequestAdapter.js:545:6
    at ./node_modules/typesense-instantsearch-adapter/lib/SearchRequestAdapter.js (SearchRequestAdapter.js:563:2)
    at __webpack_require__ (bootstrap:19:1)
    at ./node_modules/typesense-instantsearch-adapter/lib/TypesenseInstantsearchAdapter.js (TypesenseInstantsearchAdapter.js:22:29)
    at __webpack_require__ (bootstrap:19:1)
    at ./src/editor/library/container.js (MasonryItem.js:203:27)
    at Function.__webpack_require__ (bootstrap:19:1)

Screenshot from 2024-07-01 14-49-43

Metadata

React 18.3.1
Node v20.11.1
PHP 8.2.20

List of all packages we use in our plugin:

├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @floating-ui/[email protected]
├── @langchain/[email protected]
├── @loadable/[email protected]
├── @prettier/[email protected]
├── @uiw/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

@elzadj
Copy link
Author

elzadj commented Jul 1, 2024

Note: loading the src version of the script helps, but can we expect a version that doesn't need polyfill in the future, since WP decided to remove it from the default dependencies? Or should we try to add wp-polyfil manually?

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

No branches or pull requests

1 participant