I am using Parcel.js in my project and build the project and upload to my server but when go to my website, the import modules doesn’t work but in dev yes. Display this error: Cannot use import statement outside a module I saw the documentation for parcel.js but can’t find a solution How i can ..
I am working on a project using Parcel in VSCode. I am trying to refactor my code for MVC however when creating new class RecipeView VSC is showing error without saying what exactly the problem is. I would be grateful if someone could tell me what the problem is because for past 3 hours I ..
So… I’m facing a unexpected behavior in my HTML. When i toggle some "href" to a "<a>" tag my bootstrap style just vanishes away. HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Something</title> <link rel="stylesheet" href="./style/style.scss"> </head> <body> … <!–HERE–><li class="nav-li"><a class="nav-links" href="./index.html"><i class="fas fa-home"></i>Home</a></li> … <main data-router-wrapper> ..
I am using vs code right now. So I first did npm init, then I installed parcel and sass. using npm i [email protected] -D and npm i [email protected] -D. No errors until now. Now I went into the package.json file, and replaced test in the scripts object to ‘start’:’parcel index.html’. Now I write in the ..