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

IE11 Syntaxerror #126

Closed
ostandrei opened this issue Aug 8, 2019 · 3 comments
Closed

IE11 Syntaxerror #126

ostandrei opened this issue Aug 8, 2019 · 3 comments

Comments

@ostandrei
Copy link

Hi,
Using v. 1.1.9-beta.1 of vue-signature-pad, which imports signature_pad v. 3.0.0-beta.3.

It's working well in all Browsers, but on IE11 the website can not be loaded due to an error.
The same error was reported for szimek/signature_pad here:
szimek/signature_pad#405

The solution is to import it like this:

change from:
import SignaturePad from 'signature_pad';
to:
import * as SignaturePad from 'signature_pad/dist/signature_pad';

Can you please confirm?

@neighborhood999
Copy link
Owner

neighborhood999 commented Aug 12, 2019

@ostandrei Thank you for providing some information about this issue. I will take look.

@tskimmett
Copy link

If you're using webpack for your project that uses vue-signature-pad, you can add an alias in webpack config like so to fix the issue:

resolve: {
   alias: {
      signature_pad: 'signature_pad/dist/signature_pad.js',
   }
}

@gitge
Copy link

gitge commented Mar 18, 2020

This worked for me with webpack:

module.exports = {
  resolve: {
    alias: {
      'signature_pad': 'signature_pad/dist/signature_pad' // <- hier without '.js' at the end!
    }
  }
};

And with Laravel-Mix:

mix.webpackConfig({
    resolve: {
        alias: {
            'signature_pad': 'signature_pad/dist/signature_pad',
        }
    }
});

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

No branches or pull requests

4 participants