How to use require or import and not balise html

58 Views Asked by At

I test many paths, I install npm pixi.js on many folders and the default folder, ESLint doesn't see my error because he doesn't see my library, I want to change script library js to import or require, but nothing work...

I test all paths, and I test many ways.

Look at my screen, and thanks to you

<3

(https://i.stack.imgur.com/tR2MY.png)

1

There are 1 best solutions below

0
The Jared Wilcurt On

In NW.js you would just do

const PIXI = require('pixi.js');

Assuming you did npm install --save pixi.js