Coder Social home page Coder Social logo

Comments (6)

andrecrt avatar andrecrt commented on July 17, 2024

@JZiebikiewicz did you follow the install steps in README? What version of node are you using?

from atlas.

JZiebikiewicz avatar JZiebikiewicz commented on July 17, 2024

@andreftavares yes, I did all steps. I use Node 4.4.5 and npm 2.15.5. Tried also Node 6, but no luck.

Maybe you've got some extra modules installed and not added to package.json? Or maybe we should try babel@6?

from atlas.

andrecrt avatar andrecrt commented on July 17, 2024

@JZiebikiewicz i'm running it using Node.js v4.2.5 and NPM v3.5.3. Did you change the version of any package on package.json? What version of babel are you running? npm list babel

from atlas.

JZiebikiewicz avatar JZiebikiewicz commented on July 17, 2024

No. Just cloned repo, npm installed and followed config instructions. I have Babel 5.8.38.

It must be something wrong with my server. On my laptop (Windows 7 64bit) API works with Node 6.2.2 and Node 4.4.5 too. On server (Ubuntu 14.04 64bit) with none of them. Really weird.

from atlas.

JZiebikiewicz avatar JZiebikiewicz commented on July 17, 2024

@andreftavares, sooo stupid mistake. I had .babelrc file from another project in parent directory. Like:

/my-project/.babelrc
/my-project/atlas/

That caused all troubles. Sorry for hassle. Your code is correct! :)

BTW, I can't use bcrypt module on Windows. I replaced it with bcrypt-nodejs 0.0.3. Requires changing imports from import bcrypt from 'bcrypt'; to import bcrypt from 'bcrypt-nodejs'; in:

\src\resources\carts\models.js
\src\resources\users\models.js

from atlas.

andrecrt avatar andrecrt commented on July 17, 2024

@JZiebikiewicz woah didn't know about that .babelrc scenario, nice catch! Perhaps I'll add that tip to the README :)

In regards to Windows, according to this:

Windows users should make sure to have at least node 0.8.5 installed and version >= 0.7.1 of this module.

<-- So you should be fine, no?

Either way, after replacing the imports, did it work alright?

from atlas.

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.