Orlandster / vue-typed-js

Typed.js integration for vue.js. Create a typing animation.
http://www.mattboldt.com/demos/typed-js/
MIT License
469 stars 37 forks source link

TypeError: s.trim is not a function #35

Open sahmadreza opened 4 years ago

sahmadreza commented 4 years ago

Hey, After installing and running the plugin the following error is displayed

[Vue warn]: Error in nextTick: "TypeError: s.trim is not a function"

vue.runtime.esm.js?2b0e:1888 TypeError: s.trim is not a function
    at eval (typed.js?10b3:662)
    at Array.map (<anonymous>)
    at Initializer.load (typed.js?10b3:661)
    at new Typed (typed.js?10b3:92)
    at VueComponent.initTypedJS (TypedJS.vue?cdc7:26)
    at VueComponent.eval (TypedJS.vue?cdc7:16)
    at Array.eval (vue.runtime.esm.js?2b0e:1980)
    at flushCallbacks (vue.runtime.esm.js?2b0e:1906)

my code

<vue-typed-js :strings="['First text', 'Second Text']">
  <h1 class="typing"></h1>
</vue-typed-js>

vue => (cli) 3 node => v12.16.1