Code Monkey home page Code Monkey logo

Comments (8)

kamranahmedse avatar kamranahmedse commented on May 13, 2024 6

You can use it by simply importing as you would do with any other library.

For a react wrapper, we have it planned, hopefully in the coming weekend.

Just want to finish this rewrite before we start with the wrappers.

from driver.js.

kamranahmedse avatar kamranahmedse commented on May 13, 2024 1

@roelvan could you please try now? there was an issue with main definition in package.json. It should be fixed now

from driver.js.

roelvan avatar roelvan commented on May 13, 2024

I am having a Babel import problem, any idea how to use this? I am using Vue client and this is my import statement: import Driver from 'driver.js'. My error:

This dependency was not found:

* driver.js in ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/roel/Repos/dsmtw-v2-engine/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/lobby.vue

To install it, you can run: npm install --save driver.js

from driver.js.

wave52 avatar wave52 commented on May 13, 2024

You can
import Driver from 'driver.js/dist/driver.min.js'

from driver.js.

roelvan avatar roelvan commented on May 13, 2024

@roelvan could you please try now? there was an issue with main definition in package.json. It should be fixed now

Yep that did the trick. Now it works.

from driver.js.

kamranahmedse avatar kamranahmedse commented on May 13, 2024

Cool, thanks

from driver.js.

Rutulpatel7077 avatar Rutulpatel7077 commented on May 13, 2024

It's disappearing when life cycle render the main component.

from driver.js.

Attrash-Islam avatar Attrash-Islam commented on May 13, 2024

I've used driver.js with require in an ES Module project and it worked very well. Try it, if it's working then there's no need to use the import syntax.

from driver.js.

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.