Unable to complete makePizza()

Here is the code I have entered to complete page 2/6:


function makePizza() {
console.log(‘Pizza’s done. Let’s eat!’);
}

makePizza();


I’m sure this is correct but it fails and gives the following error:


Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.module.js:340
throw err;
^
Error: Cannot find module ‘…/createVariable.js’
at Function.Module._resolveFilename (module.js:338:15)
at internalRewire (/usr/lib/node_modules/rewire/lib/rewire.js:23:25)
at rewire (/usr/lib/node_modules/rewire/lib/index.js:11:12)
at Object. (test.js:5:15)
at Module._compile (module.js:456:26)
at loader (/usr/lib/node_modules/babel-register/lib/node.js:158:5)
at Object.require.extensions.(anonymous function) [as .js] (/usr/lib/node_modules/babel-register/lib/node.js:168:7)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /usr/lib/node_modules/mocha/lib/mocha.js:220:27
at Array.forEach (native)
at Mocha.loadFiles (/usr/lib/node_modules/mocha/lib/mocha.js:217:14)
at Mocha.run (/usr/lib/node_modules/mocha/lib/mocha.js:469:10)
at Object. (/usr/lib/node_modules/mocha/bin/_mocha:404:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:945:3


If I try to restart the exercise then the ‘something went wrong’ error is given. Can anyone please help?

Regards
Matt

I don’t see any problem with the code you have written.

Which browser you are using.? Can you check in different browser. Try deleting browser cache as well.

I’ve now tried using Chrome, Firefox, and Internet Explorer. I’ve deleted all the browser cache and tried restarting the exercise in all 3 and I get the same error.

I wouldn’t mind if I could just skip the exercise and move on but I can’t find a way to do that either.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.