GithubHelp home page GithubHelp logo

Comments (8)

FrankSalad avatar FrankSalad commented on June 19, 2024

I resolved it by modifying the clarifai .bablrc like so:

{
    "presets": ["es2015-node"],
    "sourceMaps": false
}

from clarifai-javascript.

yipcma avatar yipcma commented on June 19, 2024

I'm facing the same problem, hope it can get rectified soon in the npm package. Thanks a lot.

from clarifai-javascript.

maxcell avatar maxcell commented on June 19, 2024

Just wanted to check in with everyone, is this still a problem now in 2.1.8?

from clarifai-javascript.

DZamataev avatar DZamataev commented on June 19, 2024

@maxcell Facing same error in 2.1.8
screenshot_2017-05-30-17-15-49-506_com vpr

from clarifai-javascript.

DZamataev avatar DZamataev commented on June 19, 2024

After I do npm install babel-preset-es2015 --save and do the standard mantra with node_modules cleaning and cache reseting I get another error:
screenshot_2017-05-30-17-52-41-753_com vpr
And when I simply do
//import Clarifai from 'clarifai';
everything runs ok.

from clarifai-javascript.

DZamataev avatar DZamataev commented on June 19, 2024

BTW, version 2.0.18 seems to integrate just fine.
npm install [email protected] --save

from clarifai-javascript.

maxcell avatar maxcell commented on June 19, 2024

I am just rehashing this from #19:

Howdy all! I have been fiddling around for a bit and I am curious if this will have any impact to what you are doing. I have also tried this on two different node versions: v6.10.3 and v8.1.4. Going from a clean installs on both:

  1. Cleaning your cache: npm cache --force clean
    a. For just in case, be sure to remove your node_modules folder.
  2. Then npm install, you will get all your node modules again
  3. Install clarifai npm install clarifai --save
    a. If in case you are getting babel errors, I would also go npm install babel-preset-es2015 --save
  4. I also run react native using the react-native-cli
    a. If you want to install this, go ahead and npm install react-native-cli
  5. And finally you can run with react-native run-ios react-native run-android or simply using your npm start

from clarifai-javascript.

eddiezane avatar eddiezane commented on June 19, 2024

Going to close this and continue tracking in #19. Looking into this now.

from clarifai-javascript.

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.