Neos-ui: JavaScript error breaks ui

Created on 3 May 2018  路  8Comments  路  Source: neos/neos-ui

Description

The console throws various errors stating Cannot read property 'indexOf' of null. This leads to the "change type" property in the inspector also displaying this message, together with various other errors, like clicking on the "create new" button in the toolbar leading to a blank white page.

Steps to Reproduce

  1. Set up a project with neos-ui 1.0.14 or upgrade from earlier versions to 1.0.14
  2. Log into backend
  3. Select a content collection
  4. Click "create new"

Expected behavior

Omitted since the description and expectations are quite clear.

Actual behavior

Errors and not working UI.

screen shot 2018-05-03 at 11 28 16

Affected Versions

UI: Only 1.0.14

Bug

Most helpful comment

Thanks, that helps! Will fix after lunch.

All 8 comments

I try to update my current project to confirm or not the issue.

@pduersteler Can you give us more details on your browser / os versions ? Sometimes it helps with JS nasty error ;)

Hello Pascal!
I can not reproduce the error here so far. Could you please show the full console output (maybe via a screenshot)?

Of course.

OS: macOS Sierra (10.12.6)
Browser: Google Chrome Version 66.0.3359.139 (Official Build) (64-bit)

Just updated on dev-master, freshly compiled, and unable to reproduce too

Okay let's try that again with more information as requested.

I just updated neos-ui and neos-ui-compiled from 1.0.13 to 1.0.14, fired up flow server:run, logged myself in as admin, and selected a node of type Neos.NodeTypes:Text. This leads to the screenshot from above (inspector error).

This gives me the following:
screen shot 2018-05-03 at 12 02 51

Thanks, that helps! Will fix after lunch.

@pduersteler could you please test if my fix fixed it? If not reopen.
To test just pull the latest master.
Btw, I still couldn't reproduce it, but I made it more robust in the place where it failed for you.

Solved together with https://github.com/neos/neos-ui/pull/1848 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fheinze picture fheinze  路  3Comments

skurfuerst picture skurfuerst  路  9Comments

kdambekalns picture kdambekalns  路  4Comments

skurfuerst picture skurfuerst  路  9Comments

dimaip picture dimaip  路  5Comments