Durandal - No Open Found. Searched for "/" on intermittent
I wonder if anyone has had a similar issue with Durandal.js.
I get an intermittent "View Not Found. Searched for" error that is difficult to replicate as it happens very rarely.
It seems to come from the viewEngine.js file when the createView function cannot find the view. However, the view is present and works 99% of the time.
Has anyone had similar issues or do you know how I can track and fix this issue?
Thank.
+3
source to share
1 answer
In my case this required .js causing the problem.
In main.js add the following and add the waitSeconds parameter:
require.config({
waitSeconds : 0
});
This prevents require.js from waiting while trying to load files.
http://requirejs.org/docs/api.html#config-waitSeconds
Richard.
+1
source to share