keystone icon indicating copy to clipboard operation
keystone copied to clipboard

Browser errors while using "Create" in admin web interface

Open philmcm opened this issue 7 years ago • 7 comments

Bug report

Both Edge and Firefox give (different) error messages when using the "+ Create" button in the admin interface.

Describe the bug

After starting the Keystone Todo Quickstart, errors are produced when using the "+ Create" button in both Edge and Firefox.

To Reproduce

Run "npm init keystone-app ks", "npm run dev" and browse to the admin interface. Open "Todos" Click "+ Create" Add new Todo item. Edge generates the following message on R.H.S. of browser window: "Unable to get property 'refetch' of undefined or null reference" Firefox generates the following message on R.H.S. of browser window: "_this.currentObservable.query is Undefined"

NOTE: the addition of the todo works fine, however, the messages should not be generated.

Expected behaviour

The error messages should not be generated.

Screenshots

Edge: 2019-11-09 (1) Firefox: 2019-11-09

System information

  • OS: Windows 10, Vagrant 2.2.6, hashicorp/bionic64 box (Ubuntu 18.04.3 LTS). Node JS version 10.17.0 MongoDB version
  • Browser: Edge and Firefox

philmcm avatar Nov 09 '19 04:11 philmcm

Confirmed... it doesn't seem to have any negative impact. @jesstelford pinging you because you might have insight.

MadeByMike avatar Nov 11 '19 23:11 MadeByMike

Chrome version 78.0.3904.87 is producing the same Cannot get property 'refetch' of undefined error for me as well, only on the first time clicking the "Create" button and only on the first item added to a list.

danieljustus32 avatar Nov 11 '19 23:11 danieljustus32

Confirmed... it doesn't seem to have any negative impact. @jesstelford pinging you because you might have insight.

Any news about this error?

cloud90bk avatar Nov 22 '19 15:11 cloud90bk

Tried digging into this. All I can ascertain is it's coming from here which is being called from here but I can't figure out what's causing it.

Vultraz avatar Nov 30 '19 13:11 Vultraz

Fixed in #2080

Vultraz avatar Dec 11 '19 08:12 Vultraz

Hi, I've updated the node modules but still have the error message. It has been released? I use this version now: "@keystonejs/adapter-mongoose": "5.1.3", "@keystonejs/app-admin-ui": "5.4.0", "@keystonejs/app-graphql": "5.0.1", "@keystonejs/app-static": "5.0.0", "@keystonejs/auth-password": "5.0.1", "@keystonejs/fields": "6.0.1", "@keystonejs/file-adapters": "5.2.0", "@keystonejs/keystone": "5.3.0",

cloud90bk avatar Dec 11 '19 11:12 cloud90bk

The fix was just merged today. Hasn't been released yet.

Vultraz avatar Dec 11 '19 11:12 Vultraz