Console.log("Test") not working at all on Forkify

This issue has been tracked since 2021-12-07.

I've doubled check the script tag to make sure it's pointing to the controller.js in the src file but it's not working either; My index.html file is also the entry point with default: "index.html" in the package.json file.

Aside from the script tag, would there be another reason why the console wouldn't work?

Also I don't know if it's an issue: but in the dist folder, the name of my files are index.430f....js, not controller.{whatever number}.js like in the video; Would this be an issue down the line? I don't really think the naming of the file should be any issue and the file is bundling the code from controller.js but since this was created when I ran npm, I'm just curious. I've looked through the video multiple times and at this point I don't think I'm missing anything.

There was only one other person who had the same issue as mine for the same lecture but the question wasn't answered.

Screen Shot 2021-12-07 at 10 03 54 AM
Screen Shot 2021-12-07 at 10 04 11 AM
Screen Shot 2021-12-07 at 10 12 20 AM
Screen Shot 2021-12-07 at 10 04 20 AM

akozdev wrote this answer on 2021-12-07

Hi Winnie
Do you have your app repo on GitHub? Can you share the link? I'll check this

WinnieNg3210 wrote this answer on 2021-12-07
WinnieNg3210 wrote this answer on 2021-12-07

Hi! I found out the fix to the issue: it was to add module="type" to the script tag. I had an issue with the browser script import so I added the 'module=type' to the script but it also ended up fixing the console issue as well.

More Details About Repo
Owner Name jonasschmedtmann
Repo Name complete-javascript-course
Full Name jonasschmedtmann/complete-javascript-course
Language JavaScript
Created Date 2018-06-14
Updated Date 2023-03-29
Star Count 12137
Watcher Count 850
Fork Count 14403
Issue Count 153

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date