Skip to content

SignaturePad not working with Create React App #257

@taylorlapeyre

Description

@taylorlapeyre

Found a bug when attempting to use signature_pad with Webpack 2!

My project is using the newest version of Create React App. Using SignaturePad with previous versions of Create React App worked as expected, but a bug appeared when they upgraded to Webpack 2. Therefore, I am pretty confident that it specifically has to do with Webpack 2's new import/export mechanisms.

What is the current behavior?

When attempting to create a new instance of SignaturePad, the app crashes with a specific webpack-related error:

screen shot 2017-05-26 at 11 28 41 am

screen shot 2017-05-26 at 11 35 50 am

What is the expected behavior?

The instance should be created as expected, without the crash.

Which versions of SignaturePad, and which browser / device are affected by this issue? Did this work in previous versions of SignaturePad?

This appears to happen in both Chrome and Safari.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions