Giter Club home page Giter Club logo

Comments (7)

weijiekoh avatar weijiekoh commented on May 5, 2024 1

I can test this with a fresh Ubuntu installation in a VM.

How should I go about doing this? I don't think cloning your repo and running npm install will reproduce the error, as I've tried that with both jpantunes's decentralised branch and raineorshine's master branch, without encountering the error.

from solgraph.

raineorshine avatar raineorshine commented on May 5, 2024

Hmmm. Works for me and CI passes. My babel is located at ./node_modules/.bin/babel. What happens when you run type babel? I'm not sure why it's not getting installed correctly.

@jpantunes Any ideas?

from solgraph.

jpantunes avatar jpantunes commented on May 5, 2024

It took me a couple of attempts but I was able to reproduce.

The build script expects babel to be available as a global install, and in the latest version the dependencies can be resolved with:

npm i -g @babel/preset-es2015 @babel/preset-stage-1 @babel/cli @babel/core @babel/register 

I'm not sure if that's the only solution though.

from solgraph.

raineorshine avatar raineorshine commented on May 5, 2024

./node_modules/.bin is added to the PATH in npm scripts though, so babel shouldn't have to be global.

from solgraph.

jpantunes avatar jpantunes commented on May 5, 2024

Ok, in that case I believe it's my mistake.

Installing solgraph 0.3.0 with --only=dev flag works, so I'm convinced the package.json file needs to be updated to include the babel packages as a Dependency because I've listed them under DevDependency only. I'll make a pull request in a few minutes.

from solgraph.

jpantunes avatar jpantunes commented on May 5, 2024

I will need someone else to test as well because I think the behaviour changes depending on whether I use an account with npm-global in the PATH or not.

from solgraph.

raineorshine avatar raineorshine commented on May 5, 2024

#29 merged and published in v0.3.1

from solgraph.

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.