You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I don't understand why I can't make multiple calls to js.InvokeAsync.
from one of 2 JS files like this :
JSClippy ??= await js.InvokeAsync<IJSObjectReference>("import", "./Components/Agents/Clippy.razor.js"); JSDragDrop ??= await js.InvokeAsync<IJSObjectReference>("import", "./Components/Agents/draganddrop.js");
At this point, I have this error :
However, if I move my ‘draganddrop.js’ file to wwwroot it works :
JSClippy ??= await js.InvokeAsync<IJSObjectReference>("import", "./Components/Agents/Clippy.razor.js"); JSDragDrop ??= await js.InvokeAsync<IJSObjectReference>("import", "./draganddrop.js");
Do you know the answer?
Beta Was this translation helpful? Give feedback.
All reactions