Hi,
I created new template app.
ojet create myNewApp --template=navbar --webpack
Then in index.html I removed references to require.js/main.js and added injectors.
Now I run ojet serve --release.
Application is loading in browser but not working. I see below errors in the log.
ERROR in ./web/js/root.js 14:1-33:1
Module not found: Error: Can't resolve 'appController' in 'F:\Netbeans Projects\myNewApp\web\js'
Did you mean './appController'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
ERROR in ./web/js/viewModels/about.js
Module not found: Error: Can't resolve 'accUtils' in 'F:\Netbeans Projects\myNewApp\web\js\viewModels'
@ ./web/js/ lazy ^\.\/viewModels\/.+\.js$ ./viewModels/about.js
@ ./web/js/libs/oj/v11.0.0/debug/ojmodule.js
@ ./web/js/root.js 14:1-33:1
ERROR in ./web/js/viewModels/customers.js
Module not found: Error: Can't resolve 'accUtils' in 'F:\Netbeans Projects\myNewApp\web\js\viewModels'
@ ./web/js/ lazy ^\.\/viewModels\/.+\.js$ ./viewModels/customers.js
@ ./web/js/libs/oj/v11.0.0/debug/ojmodule.js
@ ./web/js/root.js 14:1-33:1
ERROR in ./web/js/viewModels/dashboard.js
Module not found: Error: Can't resolve 'accUtils' in 'F:\Netbeans Projects\myNewApp\web\js\viewModels'
@ ./web/js/ lazy ^\.\/viewModels\/.+\.js$ ./viewModels/dashboard.js
@ ./web/js/libs/oj/v11.0.0/debug/ojmodule.js
@ ./web/js/root.js 14:1-33:1
ERROR in ./web/js/viewModels/incidents.js
Module not found: Error: Can't resolve 'accUtils' in 'F:\Netbeans Projects\myNewApp\web\js\viewModels'
@ ./web/js/ lazy ^\.\/viewModels\/.+\.js$ ./viewModels/incidents.js
@ ./web/js/libs/oj/v11.0.0/debug/ojmodule.js
@ ./web/js/root.js 14:1-33:1
5 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
Thanks,
Shankar