Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'popper' from '\node_modules\shepherd.js\dist\js' #201

Closed
vsdmoraes opened this issue Aug 2, 2018 · 5 comments
Labels

Comments

@vsdmoraes
Copy link

Hello there!

I just trying to add the Shepherd in my current project.
I installed the both (Popper.js too) by NPM, and imported in my library:

import Walkthrough from './library/Walkthrough'
new Walkthrough().init()

So I followed the example:

import 'popper.js'
import Shepherd from 'shepherd.js'

class Walkthrough {
  constructor () {
    this.$step1 = $('.o-quicklinks')
  }

  init () {
    this.bindEvents()
  }

  bindEvents () {
    let tour = new Shepherd.Tour({
      defaults: {
        classes: 'shepherd-theme-arrows'
      }
    })
    tour.addStep('example', {
      title: 'Example Shepherd',
      text: 'Creating a Shepherd is easy too! Just create ...',
      attachTo: this.$step1,
      advanceOn: '.docs-link click'
    })

    tour.start()
  }
}

export default Walkthrough

I got this error:

Error: Cannot find module 'popper' from '\node_modules\shepherd.js\dist\js'

What can I do?

Thanks,
Vinícius Moraes.

@RobbieTheWagner
Copy link
Member

@vsdmoraes can you please try 2.0.0-beta.14? I think we had named popper popper instead of popper.js on accident, and that should be fixed now.

@vsdmoraes
Copy link
Author

Hey @rwwagner90

Thank you! It's working!
I just cloned the master and built the project to test.

But I need put it on my project by NPM, do you have some preview when the 2.0.0-beta.14 will be available on NPM?

And thank you for this awesome project!

Best,
Vinícius Moraes.

@RobbieTheWagner
Copy link
Member

@vsdmoraes I think it is on npm now. Sorry, travis failed to release it.

@vsdmoraes
Copy link
Author

Hey @rwwagner90

I've checked right now and the NPM version still not updated.

Thanks,
Vinícius Moraes.

@RobbieTheWagner
Copy link
Member

@vsdmoraes it's definitely updated, it's just not on the next or latest tags because I messed some things up, but the version is out there https://www.npmjs.com/package/shepherd.js/v/2.0.0-beta.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants