Giter VIP home page Giter VIP logo

Comments (9)

yunlonglee avatar yunlonglee commented on July 19, 2024 2

I using nuxt , that is how make it work

npm i vue-introjs intro.js --save

plugins/vue-introjs.ts

import Vue from 'vue'
import VueIntro from 'vue-introjs'
import 'intro.js/introjs.css'

Vue.use(VueIntro)

nuxt.config.ts

const webpack = require('webpack')

plugins: [
  { src: "~/plugins/vue-introjs", ssr: false }
]

build: {
    plugins: [
      new webpack.ProvidePlugin({
        'introJs': ['intro.js']
      })
    ]
  }

from vue-introjs.

oshell avatar oshell commented on July 19, 2024 2

I had to put this into my vue.config.js because I am using vue-cli and electron .

const webpack = require('webpack');

module.exports = {
  configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        'introJs': ['intro.js']
      })
    ]
  },
}

from vue-introjs.

kristoff2016 avatar kristoff2016 commented on July 19, 2024 1

Hey, did you fixed it ? thank you

from vue-introjs.

kristoff2016 avatar kristoff2016 commented on July 19, 2024 1

It's worked but I seen in console ReferenceError: introJs is not defined
any ideas ? thank you

from vue-introjs.

slavarazum avatar slavarazum commented on July 19, 2024 1

Have the same issue when call this.$intro().start(), did anyone resolve it?

from vue-introjs.

alex-oleshkevich avatar alex-oleshkevich commented on July 19, 2024

from vue-introjs.

jetlej avatar jetlej commented on July 19, 2024

@alex-oleshkevich - Yes, both packages were installed via NPM

from vue-introjs.

lspohn avatar lspohn commented on July 19, 2024

Same problem here. Didn't find a solution. Followed the installation guide 1:1 and experienced the same problem. Solution highly appreciated.
I'd suggest to include intro.js in this library as it seems that many struggle with Webpack configs.

from vue-introjs.

magdenkov avatar magdenkov commented on July 19, 2024

Same problem

from vue-introjs.

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.