Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Build errors using ganache-core as web3 provider #88

Closed
superduck35 opened this issue Mar 18, 2018 · 0 comments
Closed

Build errors using ganache-core as web3 provider #88

superduck35 opened this issue Mar 18, 2018 · 0 comments

Comments

@superduck35
Copy link

Expected Behavior

Following the code outlined in the readme - Ganache should initialise as a provider to web3

Current Behavior

Attempting to serve my angular app results in build errors

Possible Solution

Steps to Reproduce (for bugs)

  1. Create angular application
  2. npm install ganache-core
  3. create file with code
    const Ganache = require('ganache-core');
    this.web3 = new Web3();
    this.web3.setProvider(Ganache.provider());
    
  4. run ng serve

Context

Trying to create a web3 provider that is packaged into my app and does not need to run outside, when metamask or mist are not available. For use on the ropsten network.

Your Environment

  • Version used: Tried with ^2.1.0, ~2.0.2, 1.1.2 - each time gives different errors
  • Environment name and version (e.g. PHP 5.4 on nginx 1.9.1):
  • Server type and version:
  • Operating System and version: OSx High Sierra
  • Link to your project: https://github.com/alsco77/erc20-web-wallet
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant