Once even I got the same error. I was able to fix that by including the content delivery network or content distribution network (CDN) link of the script file.
Try the code below:
Include the above code before adding-in the
bootstrap-datetimepicker.js