TikZ Library Not Found
! Package tikz Error: I did not find the library 'XXX'.
What this error means
A TikZ library referenced with \usetikzlibrary{} doesn't exist or is spelled incorrectly. TikZ functionality is split into libraries that must be loaded explicitly.
Common causes
- Typo in the library name
- Using a library from a newer TikZ version not available in the current installation
- A library that requires a separate package (like pgfplots) loaded separately
How to fix it
Check the TikZ/PGF manual for the correct library name. Common libraries: arrows.meta, decorations.pathmorphing, calc, positioning, shapes, fit, external. pgfplots graphs require \usepackage{pgfplots} separately.
Code examples
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrow} % Wrong: should be 'arrows' or 'arrows.meta'
\begin{document}
\begin{tikzpicture}
% ...
\end{tikzpicture}
\end{document}\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,positioning}
\begin{document}
\begin{tikzpicture}
\node (a) {A};
\node[right of=a] (b) {B};
\draw[-{Stealth}] (a) -- (b);
\end{tikzpicture}
\end{document}Related errors
File Not Found
! LaTeX Error: File 'XXX' not found.
Unknown Graphics Extension
! LaTeX Error: Unknown graphics extension: .XXX.
Unicode Character Not Supported (pdfLaTeX)
! Package inputenc Error: Unicode char U+XXXX not set up for use with LaTeX.
Cannot Determine Size of Graphic (No BoundingBox)
! LaTeX Error: Cannot determine size of graphic (no BoundingBox).
Test the fix live
Paste your LaTeX into the playground and compile instantly.

