-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
h.default is not a constructor
#36
Comments
Sorry, I can't reproduce this given the little information you've written here (seems like you're missing a code sample). The live CodeSandbox playground is able to run everything fine. |
This comment was marked as resolved.
This comment was marked as resolved.
I just got it to work by running |
@nexeh yes, I don't know why that's erroring for some people though, that's inserted by Babel. Potentially some misinstalled package based on your findings 🤷♂️ I should probably finish #42 sooner as that might help resolve things like this with a more up-to-date build process. |
I was having a very similar issue ( When {
test: /\.(js|jsx|ts|tsx)$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
} Specifying {
test: /\.(js|jsx|ts|tsx|mjs)$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
} |
This is a misleading comment, so allow me to correct this.
What a package import such as that does is dependent on a variety of factors, including the package's In this case, your environment is reading the I'm not sure if this is the issue that OP and other duplicative issue OPs were experiencing (as they did not provide reproductions), but if so, that would make this very similar to (or duplicative of) the 4 year old issue #23 / szimek/signature_pad#257 . |
h.default is not a constructor
Hello i'v have this error "h.default is not a constructor" when i want to test the package.
import SignatureCanvas from 'react-signature-canvas';
in render :
The text was updated successfully, but these errors were encountered: