Tô com esse error mas já conferi todo o código certinho e nada.
listatarefa.js:3 Uncaught TypeError: Cannot read property 'addEventListener' of null
at listatarefa.js:3
(anonymous) @ listatarefa.js:3
DevTools failed to load source map: Could not load content for file:///Users/daysonrodrigues/Library/Mobile%20Documents/com~apple~CloudDocs/Aprendendo%20WEB/FRONT-END%20-%20ALURA/4%20-%20Sites%20interativos,%20integrando%20o%20JavaScript%20ao%20Navegador/1%20-%20JS%20na%20Web:%20Manipule%20o%20DOM%20com%20JavaScript/assets/css/style.css.map: System error: net::ERR_FILE_NOT_FOUND
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=BioRhyme&family=Space+Mono&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<title>Ceep</title>
</head>
<body>
<div class="app">
<div class="todo-list">
<h1 class="title">
Ceep
</h1>
<form class="form" action="">
<input class="form-input" type="text">
<button class="form-button" data-form-button> Novo Item </button>
</form>
<ul class="list">
</ul>
</div>
</div>
<script src="listatarefa.js"></script>
</body>
</html>
JS
const clique = document.querySelector(["data-form-button"]);
clique.addEventListener("click", () => {
console.log("teste");
})