Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS4007

error path is not a library.

#What it means

The import path points to a script that exists but is an indicator, not a library. Only scripts declared with library(...) can be imported.

#Typical cause

  • The name of an indicator used in an import line.

#How to fix it

Import the library instead, or turn the script into a library by changing its declaration to library(...) and exporting what others need.

#Example

It needs a separate saved indicator to import, which a single script cannot show.

  • CS4001 — The library path was not found.
  • CS4005 — export can only be used in a library.

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