Giter Club home page Giter Club logo

Comments (6)

tandrewnichols avatar tandrewnichols commented on September 23, 2024

Hmm, your package.json include babel-polyfill. I should start checking these things before I open issues. Maybe something is wrong in your babelrc (maybe you need es2017 for example)?

from neo4-js.

tandrewnichols avatar tandrewnichols commented on September 23, 2024

I'm using node 7.10.1, fwiw.

from neo4-js.

tandrewnichols avatar tandrewnichols commented on September 23, 2024

This suggests maybe the problem is that babel-polyfill is listed as a dev dependency when it should be a regular dependency. Maybe . . . I don't know that much about these things.

from neo4-js.

JanPeter avatar JanPeter commented on September 23, 2024

I'm currently developing a project myself using neo4-js and I also noticed that I need to add babel-polyfill as an dependency and I need to require the polyfill with import "babel-polyfill"; for my project. I'm not happy with this! So I'm able to replicate the problem. I try to fix this in the coming days!

Thanks for your feedback! That means a lot to me! I hope you keep trying my library 👍

from neo4-js.

tandrewnichols avatar tandrewnichols commented on September 23, 2024

Yeah, actually, I installed babel-polyfill and required it prior to requiring this and everything worked fine, so I assume importing it somewhere here would be sufficient.

from neo4-js.

JanPeter avatar JanPeter commented on September 23, 2024

I asked one of the core contributors of babel, he said either import the babel-polyfill within the server application or do a runtime transformation. I'll give the later a try this week!

from neo4-js.

Related Issues (5)

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.