question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Cannot read property 'readViews' of undefined, In List item page

See original GitHub issue

In Admin Ui single item screen. This error appeared to me.

Screen Shot 2020-06-18 at 8 58 14 PM Screen Shot 2020-06-18 at 8 58 36 PM Screen Shot 2020-06-18 at 8 58 59 PM

dependencies:

{
    "@apollo/react-hooks": "^3.1.3",
    "@keystonejs/adapter-mongoose": "^8.0.1",
    "@keystonejs/apollo-helpers": "^5.0.6",
    "@keystonejs/app-admin-ui": "^5.12.0",
    "@keystonejs/app-graphql": "^5.0.1",
    "@keystonejs/app-next": "^5.0.2",
    "@keystonejs/app-static": "^5.1.2",
    "@keystonejs/auth-password": "^5.0.1",
    "@keystonejs/fields": "^9.0.5",
    "@keystonejs/fields-wysiwyg-tinymce": "^5.2.3",
    "@keystonejs/file-adapters": "^6.0.2",
    "@keystonejs/keystone": "^8.1.4",
    "@zeit/next-css": "^1.0.1",
    "apollo-boost": "^0.4.7",
    "aws-sdk": "^2.615.0",
    "bootstrap": "^4.4.1",
    "connect-mongo": "^3.2.0",
    "cross-env": "^7.0.2",
    "express-session": "^1.17.0",
    "graphql": "^14.6.0",
    "graphql-tag": "^2.10.3",
    "moment": "^2.24.0",
    "mongoose": "^5.9.3",
    "next": "^9.2.1",
    "node-fetch": "^2.6.0",
    "path": "^0.12.7",
    "react": "^16.12.0",
    "react-apollo": "^3.1.5",
    "react-dom": "^16.12.0",
    "react-select": "^3.1.0",
    "recharts": "^1.8.5",
    "styled-components": "^5.1.1",
    "url-join": "^4.0.1"
  }

this happens to all lists that have a field of type Wysiwyg.

App crashed and white screen appeared. terminal error from nextjs once visiting this screen event - build page: /next/dist/pages/_error and this is a warning appeared while starting the server ExperimentalWarning: The fs.promises API is experimental

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
kareraisucommented, Jun 24, 2020

+1 Having the same issue with Wysiwig fields, even without any editorConfig Also happening for:

  • Content fields (even without any blocks)
  • Markdown fields
  • DateTimeUTC fields
0reactions
elhakeemcommented, Jun 27, 2020

Thank you @HailZetta the version I had was @keystonejs/fields-wysiwyg-tinymce@5.2.3 I upgraded to 5.2.5 and fortunately it worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'item_name' of undefined
slice() , this fixes the error which is occuring on the addItem() method. As there is no attribute as value for the class...
Read more >
How to Fix TypeError: Cannot read Property 'push' of ...
You call the method on a variable previously set to undefined . You call the method on a variable before it has been...
Read more >
How to Prevent the TypeError: Cannot Read Property Map of ...
A guide on the root cause of 'cannot read map of undefined' as well as techniques and tools to prevent this error.
Read more >
How to Read React Errors (fix 'Cannot read property of ...
Got an error like this in your React component? Cannot read property `map` of undefined. In this post we'll talk about how to...
Read more >
apex - cannot read properties from undefined in inner object
The js throws error "cannot read property name, of undefined". The apex method that fetches the items is AuraEnabled(cacheable=true) and I ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found