Hi team,
Please need help very bad.
I am stuck at the Lesson1 - Part5 .
Below are my code details and the error.
----------------------
main.js
----------------------
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
require.config({
path:{
'knockout':'js/libs/knockout/knockout-3.4.0',
'app':'js/modules/app',
'jquery':'js/libs/jquery/jquery-3.1.0.min.js'
},
waitSeconds: 2
});
require(['knockout','app','jquery'],function(ko,DemoViewModel,$){
//ko.applyBindings(new appViewModel());
function DemoViewModel() {
}
$(document).ready(
function ()
{
ko.applyBindings(new DemoViewModel());
}
);
}
);
-----------------------------
app.js
-----------------------------
define(['knockout'],function(ko){
return function DemoViewModel(){
ko.components.register("username",{
viewModel:function(params){
this.firstName=ko.observable("Saeem");
this.capitalizeFirstName=ko.computed(function(){
return this.firstName().toUpperCase();
},this);
},
template:
"\<p>First name: \<input data-bind='value: firstName' />\</p>\\n\\
\<p>First name capitalized: \<strong data-bind='text: firstNameCaps'>\</strong>\</p>"
});
};
} );
-----------------------------------
index.html - Attached
------------------------------------
-----------
Structure of the Folder
------------

------------------------------
Error
------------------------------
Denying load of chrome-extension://laankejkbhbdhmipfmgcngdelahlfoji/main.js. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension. (06:31:49:481 | error, other)
at index.html
Failed to load resource: net::ERR_EMPTY_RESPONSE (06:31:49:489 | error, network)
at http://localhost:8383/favicon.ico
Failed to load resource: net::ERR_FAILED (06:31:49:500 | error, network)
at chrome-extension://invalid/
Failed to load resource: net::ERR_EMPTY_RESPONSE (06:31:50:352 | error, network)
at http://localhost:8383/OracleMOOCPart5/js/knockout.js
Uncaught Error: Script error for "knockout"
http://requirejs.org/docs/errors.html#scripterror (06:31:50:359 | error, javascript)
at js/libs/require/require.js:7
Failed to load resource: net::ERR_EMPTY_RESPONSE (06:31:50:360 | error, network)
at http://localhost:8383/OracleMOOCPart5/js/app.js
Uncaught Error: Script error for "app"
http://requirejs.org/docs/errors.html#scripterror (06:31:50:370 | error, javascript)
at js/libs/require/require.js:7
Failed to load resource: net::ERR_EMPTY_RESPONSE (06:31:50:371 | error, network)
at http://localhost:8383/OracleMOOCPart5/js/jquery.js
Uncaught Error: Script error for "jquery"
http://requirejs.org/docs/errors.html#scripterror (06:31:50:372 | error, javascript)
at js/libs/require/require.js:7
>
Please help at the earliest. I am completely not sure what I am doing wrong. The code is exactly as in the gitHub.
@"Thomas P.-Oracle"