You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Likely duplicate of #308, but it was closed so I'm opening a new issue.
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
Current behavior
When using typescript to reference Cropper.DragMode.Move, compiler passes, but when loaded in browser we get the runtime error:
Uncaught TypeError: Cannot read property 'Move' of undefined
Expected behavior
For the enum to be usable in typescript and not throw a runtime error.
Minimal reproduction of the problem with instructions
Defeats the purpose of strongly type code, and typings in general.
Environment
Cropper.js version: 1.4.1
Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [x] Firefox version XX
- [x] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
Others:
typescript version: 2.9.2
webpack version: 3.5.4
Likely duplicate of #308, but it was closed so I'm opening a new issue.
I'm submitting a...
Current behavior
When using typescript to reference
Cropper.DragMode.Move
, compiler passes, but when loaded in browser we get the runtime error:Expected behavior
For the enum to be usable in typescript and not throw a runtime error.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Doing something like:
Defeats the purpose of strongly type code, and typings in general.
Environment
Relevant webpack config:
The text was updated successfully, but these errors were encountered: