Error in BaseComponent.js

Wappler v3.8.0
Win 10 Pro
ASP.NET SPA

seeing this error on console
image

it refers to this line:

cannot find the file BaseComponent.js file anywhere in my file system.

the immediate problem we are facing is that a SC is set to auto load. it is inside a route.
when the route opens up, we see this error and the SC call that is made is without its defined params.
the params get its values from session var on the index page. the session is populated correctly.

can share ngrok link on request to review this issue.

please help.

You seem to have some syntax error on the page :slight_smile:

image
don’t see any err indicator here in code view on Wappler.

any idea if there is another way to find it?

The error is not in the baseComponent.js. On line 399 it creates a function to execute the code of an event. The error is caused by one of the event handlers, you have somewhere a static event like onclick="doSomething(" and that is missing the ). So please check in you code all the events you added.

found the culprit:

onstart="$('input[type='password']:enabled').prop('value', '');"

if i remove this code from the page, it works well.
from my eyes, this code does not have a syntax error - what is wrong with it?
it is working just fine for us in PROD (which is on much older version of Wappler though).

Can you please help us understand this @patrick?

BTW, this code is in a SC.

make it onstart="$('input[type=password]:enabled').prop('value', '');" or you have to escape the quotes inside the other quotes.

1 Like

this worked - thank you very much @patrick