Programming Assignment: Breast Cancer Classification error

The solution is to replace
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script>
with
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest/dist/tf.min.js"></script>

If you need details, look here: Remove ‘sourceMappingURL’ comment from automatic minified build #18084 .

You may notice that this site uses the correct version: Set up a TensorFlow.js project. Use a script tag.