GithubHelp home page GithubHelp logo

nextTick Error about mqtt-packet HOT 6 CLOSED

mqttjs avatar mqttjs commented on June 8, 2024
nextTick Error

from mqtt-packet.

Comments (6)

mcollina avatar mcollina commented on June 8, 2024 2

You should update your webpack. It has a bug that is causing this.

from mqtt-packet.

mcollina avatar mcollina commented on June 8, 2024

Can you upload a reproducible example?

from mqtt-packet.

saikatharryc avatar saikatharryc commented on June 8, 2024

i'm unable to reproduce this same scenario,
because this is an dependency of another dependency that i used.

but, in that writeToStream.js file you have used process-nextick-args

like below:

var nextTick = require('process-nextick-args')
nextTick(uncork, stream)

while as per their documentation:
it would be something like this:

var nextTick = require('process-nextick-args')
nextTick.nextTick(uncork, stream)

image

from mqtt-packet.

mcollina avatar mcollina commented on June 8, 2024

You are probably using some module that is deduping that dependency. Version 1.x.x and 2.x.x have a different API, and for some reason your bundling system is resolving to the same file.

from mqtt-packet.

mcollina avatar mcollina commented on June 8, 2024

This library has been updated to the new version as well.

from mqtt-packet.

carloscolombo avatar carloscolombo commented on June 8, 2024

I am running into the same issue.

the writeToStream.js on line 8

var nextTick = require('process-nextick-args').nextTick

but the documentation from the process-nexttick-args says it should be something like (remove the .nextTick)

var nextTick = require('process-nextick-args')

screen shot 2018-02-28 at 9 09 22 pm

I think this is what @saikatharryc meant to type in his example.

Manually removing the .nextTick resolved the issue for me.

ebbcf1e#diff-702b1550eece30c582726dfa7e661085

from mqtt-packet.

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.