Giter VIP home page Giter VIP logo

Comments (3)

yuehkchou avatar yuehkchou commented on July 20, 2024

@Sephirothusa
Seems like the instantiated Typewriter object is not defined.

Did you try

var app = document.getElementById('app');

var typewriter = new Typewriter(app, {
    loop: true
});

and assign it to an id in the html?

If you've already done this. Likely the script is not loaded correctly and you may want to check your script order. If you own custom .js is loading itself before the Typewriter.js file.

from typewriterjs.

qroft avatar qroft commented on July 20, 2024

I am having the same problem, but with me it is a bit more complicated.
I want to use your typewriter script inside a mobile app done with Framework7 and phonegap.
as soon as i add the "import Typewriter from 't-writer.js';" line into my code, nothing works.
It seems to be a hurlde by importing modules into a mobile app, i am not sure.

Is there a walkaround for this, to define "Typewriter" somewhere else?

Greetings and thanks!
Qroft.

from typewriterjs.

AndyLIUMel avatar AndyLIUMel commented on July 20, 2024

Hi qroft, seems you need to tranlate it to es5 and use require to included the code, as your env does not support es6.

from typewriterjs.

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.