Skip to content

Instantly share code, notes, and snippets.

@peterqliu
Last active August 29, 2015 14:06
Show Gist options
  • Save peterqliu/b1ebf728c73cbfc9925e to your computer and use it in GitHub Desktop.
Save peterqliu/b1ebf728c73cbfc9925e to your computer and use it in GitHub Desktop.
Clicking on layer doesn't go to edit view
Throws "Uncaught ReferenceError: order is not defined " on this line:
function defaultTransitionErrorHandler(error) {
throw error; // This error probably originated in a transition hook.
}
I've npm installed on both the root and node-modules/mapbox-gl
@tmcw
Copy link

tmcw commented Sep 24, 2014

Throws "Uncaught ReferenceError: order is not defined " on this line:

More specific, please: where is this line, in what file? If you click the arrow next to the exception, are there are other files involved, and what are they, and what lines there?

For instance, you could include a callstack:

Uncaught TypeError: Cannot read property '1' of undefined field_filter.jsx:37React.createClass.onChangeOp field_filter.jsx:37boundMethod ReactCompositeComponent.js:1296ReactCompositeComponent.createClass._handleChange ReactDOMSelect.js:158boundMethod ReactCompositeComponent.js:1296executeDispatch EventPluginUtils.js:118forEachEventDispatch EventPluginUtils.js:106executeDispatchesInOrder EventPluginUtils.js:127executeDispatchesAndRelease EventPluginHub.js:56forEachAccumulated forEachAccumulated.js:32EventPluginHub.processEventQueue EventPluginHub.js:270runEventQueueInBatch ReactEventEmitterMixin.js:25ReactEventEmitterMixin.handleTopLevel ReactEventEmitterMixin.js:51handleTopLevelImpl ReactEventListener.js:87Mixin.perform Transaction.js:142ReactDefaultBatchingStrategy.batchedUpdates ReactDefaultBatchingStrategy.js:70batchedUpdates ReactUpdates.js:114ReactEventListener.dispatchEvent

Or a screenshot of one:

Otherwise, it's always some variant of reporting that console.log() didn't work in a codebase that includes hundreds of console.log statements - there's very little to go on there.

@peterqliu
Copy link
Author

@tmcw ah, this line is in bundle.js:34589 (for some reason Gist is not letting me attach a screenshot). There is no arrow next to the error message.

@tmcw
Copy link

tmcw commented Sep 24, 2014

If you have the dev tools open while seeing the file and you are using Chrome beta or Canary, it should show a more specific error.

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