Skip to content

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

@vsdmoraes

Description

@vsdmoraes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions