prismicio / prismic-vue

Vue plugin, components, and composables to fetch and present Prismic content
https://prismic.io/docs/technologies/vuejs
Apache License 2.0
65 stars 16 forks source link

Hanging browser with version 2.0 #26

Closed tomgalpin closed 3 years ago

tomgalpin commented 4 years ago
  1. In the previous version, if I had a component that had something akin to: <prismic-rich-text :field="item.column_title" />

And I misspelled "title" as "tile," for example. Vue would just fail to render the component.

  1. Now, when making the same typo the browser and my terminal display an error as: "[Vue warn]: Error in render: "TypeError: Cannot read property 'reduce' of undefined."

  2. Within this error, and/or if I refresh the browser, the browser will hang forever. Thus I have to close the tab (which sometimes will not close), restart my local server, and then open up a new tab for my localhost.

hypervillain commented 4 years ago

I think this should be solved now: https://github.com/prismicio/prismic-vue/blob/master/src/components/RichText.js#L26 for @prismicio/vue@2.0.6