Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS4001

error The library path was not found.

#What it means

The script imports a library that could not be found. Your own libraries resolve by name and version; other members' libraries must be published, or shared with you.

#Typical cause

  • A typo in the library name or version.
  • The library has not been saved yet, or that version does not exist.
  • Another member's library you do not have access to.

#How to fix it

Check the path user/Name/version against your library's name and version in My scripts. See Libraries.

#Example

ChartScriptError: CS4001
//@chartscript 1
indicator("Uses a library", { overlay: true })
import * as T from "@user/MissingTools@1"
plot(close)

Fixed

ChartScriptOpen in editor
//@chartscript 1
indicator("Uses a library", { overlay: true })
plot(close)
  • CS4007 — path is not a library.
  • CS4002 — Libraries import each other in a circle: path.

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