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
Menu