[wp-trac] [WordPress Trac] #53565: Split packages and blocks into separate Weback configs
WordPress Trac
noreply at wordpress.org
Thu Aug 5 11:33:10 UTC 2021
#53565: Split packages and blocks into separate Weback configs
------------------------------+-----------------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+-----------------------------
Comment (by SergeyBiryukov):
Just noting that I'm currently seeing these notices in WordPress trunk
with Gutenberg 11.2.1 active:
`Notice: register_block_script_handle was called incorrectly. The asset
file for the "viewScript" defined in "core/file" block definition is
missing. Please see Debugging in WordPress for more information. (This
message was added in version 5.5.0.) in
S:\home\wordpress.test\develop\build\wp-includes\functions.php on line
5537`
`Notice: register_block_script_handle was called incorrectly. The asset
file for the "viewScript" defined in "core/navigation" block definition is
missing. Please see Debugging in WordPress for more information. (This
message was added in version 5.5.0.) in
S:\home\wordpress.test\develop\build\wp-includes\functions.php on line
5537`
It looks like `core/file` and `core/navigation` are the only two blocks
that have a `viewScript` defined:
{{{
"viewScript": "file:./view.min.js"
}}}
Pretty much like in comment:44:ticket:53397, I've tracked this down to
`register_block_script_handle()`:
* `$script_asset_path` is assigned the value returned by `realpath()` on
this path: `S:\home\wordpress.test\develop\build\wp-
content\plugins\gutenberg\build\block-
library\blocks/file/./view.min.asset.php`
* `realpath()` returns `false`, because the file does not exist.
* The `file_exists()` check below also returns `false`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53565#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list