Uncaught TypeError: Cannot read property 'BYTES_PER_ELEMENT' of null undefined