How I Fixed My Stupid JavaScript Mistake

Written by yahyajamaladine | Published 2021/01/18
Tech Story Tags: javascript | webdevelopment | sofware-development | codinglife | debugging-in-vscode | debugging | softwareengineer | junior-developers | web-monetization

TLDR The first time I wrote a code that contained an import statement, I made a stupid mistake. A module is just a file that exports some code. JavaScript developers have been using modules with libraries’ aid till the community introduced them as a built-in feature in ES6. It turns out that I should change the type attribute in the script tag because I’m dealing with a module, not a regular JavaScript file. The solution in a Stack overflow was found in Stack overflow.via the TL;DR App

no story

Written by yahyajamaladine | Javascript Lover/ I write random stuff on : Meduim https://medium.com/@yahya_
Published by HackerNoon on 2021/01/18