Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS4002

error Libraries import each other in a circle: path.

#What it means

Libraries import each other in a circle (the message shows the chain): A imports B, and B, directly or through others, imports A. The compiler cannot decide which one comes first.

#Typical cause

  • Two libraries that each use helpers from the other.

#How to fix it

Move the shared helpers into a third library that both import, so the imports form a tree. See Libraries.

#Example

It needs two or more saved libraries that import each other, which a single script cannot show.

  • CS4001 — The library path was not found.
  • CS4004 — The library path has errors (line line: detail).

The ChartScript documentation is in English for now; translations will follow.