Import the global Scripts, into Index.ejs and refer to it in a separate page, and run the lint report undefined.

Import global Scripts in Index.ejs
index.ejs:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jointjs/2.1.0/joint.js"></script>

can be used in a separate page:
Detail.js

  constructor(props) {
    super(props);
    this.graph = new joint.dia.Graph();
  }
   

but when running npm run lint, an error is reported:

   .../Detail.js
30:22  error    "joint" is not defined        no-undef

Code check failed

Mar.21,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4ba6a-44e4d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4ba6a-44e4d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?