Code Monkey home page Code Monkey logo

Comments (5)

darrachequesne avatar darrachequesne commented on June 17, 2024 2

This should be fixed by 6dd2bc4, included in version 6.5.1.

Thanks for the heads-up 👍

from engine.io.

bmeijwaard avatar bmeijwaard commented on June 17, 2024 1

+1 my legacy project pipeline started breaking since a week. Nodejs v10.24.1 with Gulp 4.0.0
Using v6.4.2 didn't work either.

ReferenceError: TextDecoder is not defined
at Object. (..\node_modules\engine.io\build\server.js:16:22)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (..\node_modules\engine.io\build\engine.io.js:5:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)

from engine.io.

iowaguy avatar iowaguy commented on June 17, 2024 1

I am also seeing this issue. Same situation: my pipeline that was previously working is now failing here. Adding const { TextDecoder } = require("util"); before the offending line in server.js seems to let the build continue.

This line was added in 6.5.0, but it seems that the proper libraries were not imported: https://github.com/socketio/engine.io/blame/9608781efe32aa4a5f2800923aabc2a3be8c7148/lib/server.ts#L23

from engine.io.

fenzaiway avatar fenzaiway commented on June 17, 2024

from engine.io.

bmeijwaard avatar bmeijwaard commented on June 17, 2024

Disabled NPM package browser-sync for the time being. This depends on socket.io, which depends on engine.io.

from engine.io.

Related Issues (20)

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.