A full-featured, open-source content management framework built with Node.js that empowers organizations by combining in-context editing and headless architecture in a full-stack JS environment.
Step by step instructions to reproduce the behavior:
Create a widget area in @apostrophe/global (ie, a footerText field that you can add Rich Text to)
Add it to the template via {% area data.global, 'footerText' %}
Add a Rich Text widget with some content to our global area and save
In-context on the page, click Edit Rich Text
See error
Expected behavior
I expected to be able to edit the field in-context
Describe the bug
A VueJS error is thrown:
[Vue warn]: Error in v-on handler (Promise/async): "TypeError: Cannot read properties of null (reading '_url')"
found in
---> at node_modules/apostrophe/modules/@apostrophecms/area/ui/apos/components/AposAreaWidget.vue
at node_modules/apostrophe/modules/@apostrophecms/area/ui/apos/components/AposAreaEditor.vue
TypeError: Cannot read properties of null (reading '_url')
at VueComponent.edit
Details
Version of Node.js:
Node v14.7.5
Server Operating System:
MacOS with my MongoDB instance running in Docker
Additional context:
I've attached the boilerplate clone I modified to recreate the problem, as well as a DB backup with some test data, as described above and show in the screenshot above.
The DB can be restored by extracting the zip file and running
mongorestore --gzip --archive=a3-boilerplate_2021-09-16_20-46-42.archive
Definitely a bug. The intended behavior is that it would open an editor for the appropriate context document (in this case the global doc). This is on our current sprint list of error tickets.
To Reproduce
Step by step instructions to reproduce the behavior:
Expected behavior
Describe the bug
Details
Version of Node.js:
Server Operating System:
Additional context:
a3-boilerplate.zip a3-boilerplate_2021-09-16_20-46-42.archive.zip