MV Importing third party libraries error

Hello! I'm trying to load a third party library within rpg maker mv, but I'm getting this error message in the console log:

1638463224723.png



This is my index.html:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="user-scalable=no">
<link rel="icon" href="icon/icon.png" type="image/png">
<link rel="apple-touch-icon" href="icon/icon.png">
<link rel="stylesheet" type="text/css" href="fonts/gamefont.css">
<title>Project1</title>
</head>
<body style="background-color: black">
<script type="text/javascript" src="js/libs/third_party_library.js"></script>
<script type="text/javascript" src="js/libs/pixi.js"></script>
<script type="text/javascript" src="js/libs/pixi-tilemap.js"></script>
<script type="text/javascript" src="js/libs/pixi-picture.js"></script>
<script type="text/javascript" src="js/libs/fpsmeter.js"></script>
<script type="text/javascript" src="js/libs/lz-string.js"></script>
<script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"></script>
<script type="text/javascript" src="js/rpg_core.js"></script>
<script type="text/javascript" src="js/rpg_managers.js"></script>
<script type="text/javascript" src="js/rpg_objects.js"></script>
<script type="text/javascript" src="js/rpg_scenes.js"></script>
<script type="text/javascript" src="js/rpg_sprites.js"></script>
<script type="text/javascript" src="js/rpg_windows.js"></script>
<script type="text/javascript" src="js/plugins.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>


any suggestion?
"syntax error" is the computer's way to tell you that you wrote nonsense.
the most common cause for this is a typo or a mix-up of different letters or something like this.

and we can't even help you here because it looks as if you censored the name of the library, the part that you wrote wrong in the original file.
you're right, but it's basically the same name of the file so it should be a code error in the index.html, is there a typo in there?
Line 1 of third_party_library.js is doing an import statement in a way that the NW.js version you are using cannot support. I've only seen import used in node applications myself, so I'm not that familiar with it.
thank you, how can I import outer libraries in a standard RPG maker mv project then?

Without js processor, importing with require should be the way to go?
Can you help me?
They have to be compatible with ES5 for out the box RPGMaker MV. Typically you don't import third party libraries, but instead load plugins via the plugin system.
What is your third party library doing?
that library works with ES6, it should be compatible I guess
ES5 is what works, ES6 won't run. You'd have to upgrade to a newer NWjs for it to work
Thank you! Could you tell me how can I upgrade it ?
A guide is here

Original thread: https://forums.rpgmakerweb.com/threads/importing-third-party-libraries-error.142660/