The issue turned out to be the file path. I made a post on Reddit about this issue and one user pointed out
<script>
import '../scripts/menu.js';
</script>
Really should be
<script>
import '../assets/scripts/menu.js';
</script>
Once I made the change the page built as expected.