Git Product home page Git Product logo

Comments (5)

jrsquared avatar jrsquared commented on May 22, 2024

Did you run npm install fresh or is this in an existing vizceral directory? If it's a directory that has already been used, make sure you run npm update as well.

Keep in mind that this module is used regularly at each published version so transpiling does work in general. If something is not working specifically for you, please try to include a lot more detail (node version, npm version, OS, make sure you're testing from a clean clone and install...)

from vizceral.

jasonwr avatar jasonwr commented on May 22, 2024

Just ran:

npm install [email protected] && cd node_modules/vizceral && npm install && npm run build

The node_modules were deleted prior. I even ran an npm update and repeated the install and build stages and am receiving the same aforementioned error.

from vizceral.

jrsquared avatar jrsquared commented on May 22, 2024

Ah, you're trying to run scripts from inside the node_modules directory. That's a workflow I have never run across. The match to run babel was a regex on node_modules, so it was never being transpiled.

from vizceral.

jrsquared avatar jrsquared commented on May 22, 2024

Nevermind, just realized that this fixes the one error seen when trying to transpile inside the node_modules directory, but it breaks the output. Reverted this change. We don't support running npm run build inside of a node_modules directory. Use git clone to get the source and build if you need to build it, and npm link if you want to use your own modified vizceral.

from vizceral.

jasonwr avatar jasonwr commented on May 22, 2024

@jrsquared thank you. I was running:

npm install vizceral
cd node_modules
cd vizceral
npm install && npm run build

Hopefully others won't make the same mistake. I put a BUILD.md inside my own custom vizceral build with this note. Essentially what I'm doing is putting the transpiled source into a lib/vizceral and that's all being distributed by Gulp and served up as a single main.min.js file to my Angular UI.

from vizceral.

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.