package.json was wrong
Resize listener should be set after canvas appended