The cause of the warning seems to have to do with the auto-generated bookmarks from the hyperref package. Even just using math mode will cause some warnings in the log. \boldsymbol makes a mess.
The easiest way to fix the problem is
\chapter{\texorpdfstring{The value of $\boldsymbol{e}$}{The value of e}}
The macro \texorpdfstring will use the first argument for the PDF contents, and the second argument for the bookmarks. Read more in section 4.1.2 of the documentation of the hyperref package.
P.S.
- You should use
\boldmath or \bm instead. The spacing produced by \boldsymbol is bad in some cases. A note of warning that using \bm without \texorpdfstring produces a fatal error.
- if you manually specify a different TOC heading in the optional argument to
\chapter, \section, etc. (eg. to unbold the math), \texorpdfstring goes in the optional argument, not the main argument.
\documentclass{book} \usepackage{amsmath} \begin{document} \chapter{The value of $\boldsymbol{e}$} \end{document}, which works fine ... – Zarko May 29 '20 at 02:01\boldsymbolare not required. They just make the problem worse, because the bookmark actually contains the hidden pmb generated by boldsymbol. – Max Xiong May 29 '20 at 02:58hypererlinkissue and i edit my question to include MWE. I have no idea how i can create a MWE for a simple – aan May 29 '20 at 09:19