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

Uncaught TypeError: _shepherd2.default.Tour is not a constructor #202

Closed
vsdmoraes opened this issue Aug 6, 2018 · 3 comments
Closed

Uncaught TypeError: _shepherd2.default.Tour is not a constructor #202

vsdmoraes opened this issue Aug 6, 2018 · 3 comments
Labels

Comments

@vsdmoraes
Copy link

Hey there!

Recently I updated my project to the "2.0.0-beta.14" by NPM.
But after update it, the following error started to occur.

Uncaught TypeError: _shepherd2.default.Tour is not a constructor

The way of I imported the module is:

import Shepherd from 'shepherd.js'

But if I built the shepherd and copy/paste the dist, the project back to work.

I've compared both files, and the the shepherd.js from NPM hasn't the "return Shepherd" in end.
And the first comment about the version in the top of the code is:

/*! shepherd.js 2.0.0-beta.13 */

You can check the diff here: https://www.diffchecker.com/ltjErMqu

Thanks,
Vinícius Moraes.

@RobbieTheWagner
Copy link
Member

Yes, I think this is because I missed some steps that Travis usually runs when I tried to manually deploy. Trying to get Travis to deploy a 2.0.0-beta.15 now to see if it will work.

@RobbieTheWagner
Copy link
Member

@vsdmoraes can you please try 2.0.0-beta.15? I just released it.

@vsdmoraes
Copy link
Author

Hey @rwwagner90,

It's fixed.
Really thanks, man!

And congrats for your support on this project.
Thanks a lot!

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