Fix errors and update devDependencies