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

Uncaught Error: You tried to opt-in to unstable APIs #264

Closed
aaronjorbin opened this issue Oct 31, 2023 · 4 comments · Fixed by #273
Closed

Uncaught Error: You tried to opt-in to unstable APIs #264

aaronjorbin opened this issue Oct 31, 2023 · 4 comments · Fixed by #273

Comments

@aaronjorbin
Copy link

This is using Gutenberg 16.9.0, WordPress 6.5-alpha-57027, and Friends 2.8.2.

My guess is that this is related to WordPress/gutenberg#55182 https://github.com/akirk/friends/tree/main/libs/blocks-everywhere will need to be updated.

Error: You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.
__dangerousOptInToUnstableAPIsOnlyForCoreModules(../../packages/private-apis/src/implementation.js:107)
		throw new Error(
294(https://aaron.jorb.in/wp-content/plugins/friends/libs/blocks-everywhere/build/index.min.js:24)

r(https://aaron.jorb.in/wp-content/plugins/friends/libs/blocks-everywhere/build/index.min.js:42)

[anonymous](https://aaron.jorb.in/wp-content/plugins/friends/libs/blocks-everywhere/build/index.min.js:42)

r.O(https://aaron.jorb.in/wp-content/plugins/friends/libs/blocks-everywhere/build/index.min.js:42)

[anonymous](https://aaron.jorb.in/wp-content/plugins/friends/libs/blocks-everywhere/build/index.min.js:42)

[anonymous](https://aaron.jorb.in/wp-content/plugins/friends/libs/blocks-everywhere/build/index.min.js:42)
@akirk
Copy link
Owner

akirk commented Oct 31, 2023

Thanks for the pointer! I need to upgrade blocks-everywhere to Automattic/blocks-everywhere#193 (in my defense, it was only released 6 hrs ago :) )

I am currently unable to test, could you just elaborate on the consequences? Does it completely break everything?

@aaronjorbin
Copy link
Author

It's hard to tell what is or is not broken for me as I am not much of a power user of friends yet. I can tell you that the main /friends page loads. Sorry for not being able to provide a better bug report.

@lordmatt
Copy link

Can confirm seeing this. Replies seem to be broken. The reply text box is grayed out and inactive.

@akirk
Copy link
Owner

akirk commented Nov 12, 2023

Until I figure things out, you can turn off Gutenberg on the Frontend in Settings:

Screenshot 2023-11-12 at 06 32 17

Unfortunately it is not as easy as just upgrading Blocks Everywhere library since it is now locked to the latest version of Gutenberg which is likely different from the one which comes with WordPress. So either I completely remove this, or I ship multiple versions of Blocks Everywhere.

Things have been busy at work, I'm hoping to publish a new version with a solution within the week.

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

Successfully merging a pull request may close this issue.

3 participants