What is the file path for the module scripts? I'm attempting to debug with Visual Studio but can't find them (search is coming up empty).
If you mean the global functions, it is under "Models/src/Globals.cs"
I was after the client side Javascript, the new replacement for client script and startup script.
There was a file I thought was relevant based on name, but it was empty (I generated my project with code).
It is generated under wwwroot/js. Note that it cannot contain any C# code, otherwise you'll see 'Error: C# code is not allowed in global Module Script.' during generation, do not ignore.
I'm still not finding it. The modulescript.js file in wwwroot/js is empty. Most of my scripts are table specific, but I'm not finding any of the code in the .cshtml files either.
Most of the existing code is just a copy paste of the legacy javascript, but I do have one import statement.
Just wanted to check back and make sure there isn't a separate checkbox or anything to generate the module code.
Check userevent.js
No luck. That file has:
ew.ew.events={};ew.charts={};ew.clientScript=function(){};ew.startupScript=function(){};events={};ew.charts={};ew.clientScript=function(){};ew.startupScript=function(){};
Make sure you enter under:
This is the global module script. For page level module scripts, they are generated in the page, not as separate scripts.
I found the global version in modulescript.js, but I don't see the table specific version in the cshtml file (ex. The add page).
Update template and try again.
Thanks, I see them at the bottom of the cshtml files now.
