[Python] Javascript flask tutorial [closed]

Discussão em 'Python' iniciado por Stack, Setembro 14, 2024.

  1. Stack

    Stack Membro Participativo

    I am going through a tutorial, but it is not working and I can't figure out why.

    It is "Python + JavaScript - Full Stack App Tutorial"

    https://www.youtube.com/watch?v=PppslXOR7TA

    I downloaded the files whole sale, but when I use 'npm run dev' command it says

    usage: vite [options]

    A simple and minimal static site generator.

    positional arguments:
    {init,new,build,serve}
    Options to help create, build and serve your project.

    options:
    -h, --help show this help message and exit
    -v, --version show program's version number and exit


    When I manually type in the code following the video I try to run it and there is a problem with the following line in ContactList.jsx

    {contacts.map((contact) => (


    error is Uncaught TypeError: Cannot read properties of undefined (reading 'map')

    It looks like contact doesn't exist, and it is empty because I am just starting the program, but I have no idea what the problem could be.

    Continue reading...

Compartilhe esta Página