Tutorial doesn't work (Theme options example)
SamTyurenkov opened this issue · 2 comments
Version
- Carbon Fields Plugin : 3.6.3
- Carbon Fields : 3.6.3
- WordPress: 6.4.2
- PHP: 8.1
- Other: Bedrock installation, Carbon Fields plugin in mu-plugins folder, FSE-supported theme
Expected Behavior
I expect to see a custom field Text Fields in Theme Options as documented here
https://carbonfields.net/docs/carbon-fields-plugin-quickstart-2/?crb_version=2-2-0
Actual Behavior
While Theme Options page is available in menu, the Text Field is not. Also there are errors in console.
app.js?ver=3.6.3:1 Uncaught SyntaxError: Unexpected token '<' (at app.js?ver=3.6.3:1:1)
vendor.js?ver=3.6.3:1 Uncaught SyntaxError: Unexpected token '<' (at vendor.js?ver=3.6.3:1:1)
core.js?ver=3.6.3:1 Uncaught SyntaxError: Unexpected token '<' (at core.js?ver=3.6.3:1:1)
metaboxes.js?ver=3.6.3:1 Uncaught SyntaxError: Unexpected token '<' (at metaboxes.js?ver=3.6.3:1:1)
admin.php?page=crb_carbon_fields_container_theme_options.php:2158 Uncaught TypeError: Cannot read properties of undefined (reading 'initialize')
at admin.php?page=crb_carbon_fields_container_theme_options.php:2158:25
Container definition
I didnt understand this question
Steps to Reproduce the Problem
Well I created a new theme on a bedrock installation, dont have any plugins almost. Just query monitor, redis cache.
I installed the plugin with composer and specified install path to mu-plugins. theme doesnt enqueue anything yet except gutenberg blocks.
Comments
Please add any other comments here
Nevermind, I figured out its a problem on bedrock side. At least for now.
i double checked, actually its carbon fields files, that appear with html appended
Are there any updates here? I've got the same issue.