Hello, I followed the tutorial and I try to push the input text into the list but it doesn't work. I check the details like set the HTML <script src="index.js" type="module"></script> and make sure I use my firebase url in appSettings object . The output shows:** Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.** I cannot get the hint about that because I have added the type="module" in my HTML. Does anyone have the same problem?
#Firebase Champions app problems
5 messages · Page 1 of 1 (latest)
Are you running this from a live server ? VS code should have that feature in the bottom right of the screen, it's a small icon. If not you can download an extension.
Alternatively, you could learn Vite. https://vitejs.dev/ which has it's own dev server.
,ohhh yes it works, I DOWNLOAD it and run. It's quite weird, basically I just open the index.html file and it doesn't work. Then I try to click the "Go LIve" button on the corner of the vscode then it works. Could I ask how do you use Vite in VScode,is there any advantage?
you will need to create a new package then port your project to vite. then it's as easy as npm run dev in the terminal then as you save your project it will refresh the server and you will see updates.