question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue when issue programatic command

See original GitHub issue

This works ok when using the buttons on the map, but when calling the printMap method elsewhere has this error:

modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:440455 oops, something went wrong! TypeError: Cannot read property 'width' of undefined
    at NewClass._resizeAndPrintMap (modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:440455)
    at modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:440455
    at meteor.js?hash=6d285d84547b3dad9717a7c89c664b61b45ea3d8:1117
    at <anonymous>
(anonymous) @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:440455
(anonymous) @ meteor.js?hash=6d285d84547b3dad9717a7c89c664b61b45ea3d8:1117
Promise rejected (async)
Promise.then @ promise.js?hash=c98d83815206ae5685c0ad4b836235e77666d747:97
_createImagePlaceholder @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:440455
printMap @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:440455
StepFinalComponent._this.handleSubmitOrder @ step-final.jsx:228
submit @ step-final.jsx:116
StepperControlComponent._this.handleNext @ stepper-control.jsx:122
EnhancedButton._this.handleTouchTap @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:41172
ReactErrorUtils.js.ReactErrorUtils.invokeGuardedCallback @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:9171
executeDispatch @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:8952
executeDispatchesInOrder @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:8975
executeDispatchesAndRelease @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:8365
executeDispatchesAndReleaseTopLevel @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:8376
forEachAccumulated @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:9278
processEventQueue @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:8576
runEventQueueInBatch @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:15719
handleTopLevel @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:15729
handleTopLevelImpl @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:20770
perform @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:11677
batchedUpdates @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:20683
batchedUpdates @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:10345
dispatchEvent @ modules.js?hash=065275937aca1cbee55ce09c264f23ee80b21989:20845

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
sblaauwcommented, Nov 17, 2017

I received the same error as @ShawnUrbach.

The problem: When _resizeAndPrintMap() was called internally via the control it would make a call with sizeMode being the full className “A4Landscape page” whereas calling it programmatically would only be A4Landscape which wouldn’t match the preset.

I’ve added a pull request to resolve the issue.

0reactions
mtan11commented, Jan 9, 2020

Any help? i still had this problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to programmatically trigger "View Problem (Alt + F8 ...
I think you could try to execute the command editor.action.marker.next directly. e.g.. editor.trigger('anystring', ...
Read more >
Error while executing adb command programmatically
adb shell is used when you're executing the command in your PC trying to access the device. But when you are executing the...
Read more >
Running Commands Programmatically · oclif: The Open CLI ...
First, it is generally a bad idea to run a command directly as the command exports a user interface, not a code interface....
Read more >
Built-in Commands | Visual Studio Code Extension API
Built-in Commands. This document lists a subset of Visual Studio Code commands that you might use with vscode.commands.executeCommand API.
Read more >
Programmatic Modeling Basics - MATLAB & Simulink
To view or change the commented state of a block programmatically, use the get_param and set_param commands. To view the commented state of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found