Hey this is really bizarre.
I will give some code examples here:
HTML:
<body style="background-color:rgb(157, 163, 163)" onload="createData()">
<script src="indexLIS.js"></script>
<script src="assets/initData.json"></script>
</body>
Javascript:
//import dataSource from './assets/initData.json';
function createData(){
console.log("hey");
}
JSON:
{
"dataSource":[
{
"id": 0,
"name":"TemporaryName",
"node-level":0
}
]
}
In a code example even this simple, each time I open the HTML I get "hey" printed to the console almost immediately. However, if I uncomment the first line of the javascript code there and import the data from initData.json, then I immediately get the error "createData not defined" as though the HTML code has completely lost the ability to communicate with the javascript file.