FormaTeX
FatalFiles & Resources

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

Causes the error
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrow}  % Wrong: should be 'arrows' or 'arrows.meta'
\begin{document}
\begin{tikzpicture}
  % ...
\end{tikzpicture}
\end{document}
Fixed
\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

Test the fix live

Paste your LaTeX into the playground and compile instantly.

Una cosa rápida

Registramos el uso anónimo — visitas a páginas, uso de funciones, eventos de compilación — para entender qué funciona y qué no. Sin publicidad, sin datos personales, sin compartir con terceros.

Política de cookies