Giter Site home page Giter Site logo

node-playground's Issues

Has error when start app

[nodemon] starting node server/index.js
internal/modules/cjs/loader.js:1174
throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: D:\xampp\htdocs\app\node-playground\chapter-1-chat\server\index.js
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1174:13)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
code: 'ERR_REQUIRE_ESM'
}
[nodemon] app crashed - waiting for file changes before starting...

Initiate Chat error

When I try to initiate chat, I get this response, I've tried all possible solutions but still the same response I get

{
"success": false,
"error": {}
}

please I need urgent help

null values in conversation

hey, great tutorial..Im facing an error when i hit
[Get] Get recent convesation
http://localhost:3000/room/565241728497455b966fbc45dc2fa7bd
same issue in
http://localhost:3000/room/565241728497455b966fbc45dc2fa7bd?limit=15&page=0
i get empty data in conversation


{
    "success": true,
    "conversation": [],
    "users": [
        {
            "_id": "5e221be2bbff463cb239ce14278b11b1",
            "firstName": "user1",
            "lastName": "user1",
            "type": "consumer",
            "createdAt": "2021-03-31T22:27:53.203Z",
            "updatedAt": "2021-03-31T22:27:53.203Z",
            "__v": 0
        },
        {
            "_id": "6736f6c9698549da8c77e75f2a784c06",
            "firstName": "user2",
            "lastName": "user2",
            "type": "consumer",
            "createdAt": "2021-03-31T22:28:03.360Z",
            "updatedAt": "2021-03-31T22:28:03.360Z",
            "__v": 0
        }
    ]
}

need update to socket.io 3

Working through the tutorial.
received the following error: import socketio from "socket.io"
SyntaxError: The requested module 'socket.io' does not provide an export name...

When I reverted to socket.io 2.3.0, which is the version you use, I did not receive an error.

thank you. I'm enjoying the tutorial. You give a much more useful introduction to socket.io then I've seen elsewhere.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.