Adding heatmap example to my project leads to empty page [message #1838408] |
Wed, 24 February 2021 12:21 |
Pr Nico Messages: 21 Registered: February 2021 |
Junior Member |
|
|
Hello, I am trying to import the heatmap example from bsi widget to my project, after copying everything, I try to run my webapp all run configuration.
And once I am in the client, I get the login page, which is fine, once logged, I end on an empty page, nothing is loaded, no error in chrome/eclipse.
(It looks like my dist folder is not fully created then, which may lead to this issue).
If I put these as comments in my index.js
//export {default as HeatmapField} from './heatmap/HeatmapField';
//export {default as HeatmapFieldAdapter} from './heatmap/HeatmapFieldAdapter';
//export {default as HeatmapFieldLayout} from './heatmap/HeatmapFieldLayout';
//export {default as simpleheat} from './heatmap/leaflet-heat'; Everything works the way it did before.
I have exactly the same behavior when I try to import chartjs to my project, yet I managed to import the custom tile feature.
My setup is the latest nodejs, scout 10.0.33
[Updated on: Wed, 24 February 2021 17:00] Report message to a moderator
|
|
|
|
Re: Adding heatmap example to my project leads to empty page [message #1838428 is a reply to message #1838423] |
Wed, 24 February 2021 18:26 |
Pr Nico Messages: 21 Registered: February 2021 |
Junior Member |
|
|
Hello, thank you for this well explained answer.
I tried to add the vendors.js to my index.html and yes now my application is no longer empty.
How do I do to not have this line <scout:script src="vendors.js"/> in the index.html to disapear everytimes I rebuild the app?
I tried to get the latest scout eclipse from the download page and It looks like the version 10.0.42 still follows the old archetype
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My Application</title>
<scout:include template="includes/head.html" />
<scout:stylesheet src="helloworld-theme.css" />
</head>
<body>
<scout:include template="includes/no-script.html" />
<div class="scout" data-partid="1"></div>
<scout:version/>
<scout:script src="jquery.js"/>
<scout:script src="eclipse-scout.js"/>
<scout:script src="helloworld.js"/>
</body>
</html>
I think I will wait for the new scout 11 to be released and then migrate my application
[Updated on: Thu, 25 February 2021 10:59] Report message to a moderator
|
|
|
|
Re: Adding heatmap example to my project leads to empty page [message #1838443 is a reply to message #1838434] |
Thu, 25 February 2021 07:21 |
|
Hi Nico
> How do I do to not have this line <scout:script src="vendors.js"/> in the index.html to disappear everytimes I rebuild the app?
Could you verify where the index.html, where you've added the line above, is located? Is it the file in /src/main/resources/WebContent (which is the source) or have you accidentally changed the file in the target/dist/res folder? If the latter is the case, this would explain, why your changes disappear every time you build.
Cheers
André
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
Powered by
FUDForum. Page generated in 0.06211 seconds