WordPress – enqueue js issue – page broken, no error

wp_enqueue_script() expects an array of strings, not a string, for the $deps parameter.

So, for example, your code should read:

wp_enqueue_script( 'popper', get_theme_file_uri('/js/popper.js'), array( 'jquery' ), array(), true );

error code: 523