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: parseCoordInputs.parseCornerCoordinateInputs is not a function #606

Closed
jywarren opened this issue Jan 4, 2019 · 2 comments

Comments

@jywarren
Copy link
Member

jywarren commented Jan 4, 2019

var parseCoordInputs = require('../../util/ParseInputCoordinates');

Hi @Divy123, i'm seeing an error as above in this line - strangely, this line was compiled into the /dist/ folder instead of being browserified:

    var parseCoordInputs = require('../../util/ParseInputCoordinates');

So of course it can't do require in the browser. Do you know what's going on? Related to PR #592

Thank you!

A bit of urgency because this is deployed to the demo already, affects Crop and Overlay modules.

@Divy123
Copy link
Member

Divy123 commented Jan 5, 2019

Sure @jywarren. I am travelling right now.
Will definitely look into in 3-4 hours.

@vibhorgupta-gh
Copy link

@jywarren @Divy123 It's an easy fix. The issue lies with the fact that the function was exported via module.exports which exports references, so the variable which stores the require can itself be called as a function because the function exported is stored there. parseCoordInputs.parseCornerCoordinateInputs doesn't exist, basically.

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

No branches or pull requests

3 participants