Git Product home page Git Product logo

Comments (4)

tonyofbyteball avatar tonyofbyteball commented on September 3, 2024 1

Headless now depends on git version of byteballcore, like suggested in your workaround, so the error should not appear again, at least if using node 6.x or later.

from ocore.

Edie47 avatar Edie47 commented on September 3, 2024

Hello, unfortunatelly I am facing the same error with file event_bus.js with this code:

"use strict";
var eventBus = require('byteballcore/event_bus.js');
var headlessWallet = require('headless-byteball');

Have you figured out the sollution?

from ocore.

Odan316 avatar Odan316 commented on September 3, 2024

Hi, I have found workaround, but I'm not sure if it's my mistake all along, or should be corrected in byteball architecture.

Instead of

"dependencies": {
	"headless-byteball": "git+https://github.com/byteball/headless-byteball.git",
	"byteballcore": "^0.2.33",
	.....
}

as stated in documentation, I write

"dependencies": {
    "headless-byteball": "git+https://github.com/byteball/headless-byteball.git",
    "byteballcore": "git+https://github.com/byteball/byteballcore.git",
    .....
  }

in my package.json

In this case, npm will not duplicate "byteballcore" package inside "headless-byteball" module and headless-byteball will use base byteballcore instead of creating second instance with his own package.

Maybe it should be changed in documentation.

from ocore.

Edie47 avatar Edie47 commented on September 3, 2024

Thank you. It works.

from ocore.

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.