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.

requestList is not defined in orders.bundle.js

See original GitHub issue
  • longclaw version: 0.2.1
  • Django version: 1.11.13
  • Python version: 3.6

Description

When select a Order in the Wagtail Admin it shows in the JavaScript log ReferenceError: requestList is not defined from orders.bundle.js and it shows a empty Order View

error message wagtail-admin order view

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
linuxluigicommented, May 30, 2018

hmm maybe I found something

//List/Post new product request
var requestsList = exports.requestsList = new ApiEndpoint('requests/');
//List product requests for a single variant
var requestVariantList = exports.requestVariantList = new ApiEndpoint('requests/variant/{id}/');

exports.default = {
  orderDetail: orderDetail, fulfillOrder: fulfillOrder, refundOrder: refundOrder, checkout: checkout,
  checkoutToken: checkoutToken, basketList: basketList, basketListCount: basketListCount,
  basketDetailCount: basketDetailCount, basketDetail: basketDetail, shippingCost: shippingCost,
  shippingCountries: shippingCountries, shippingCountryOptions: shippingCountryOptions,
  addressList: addressList, addressDetail: addressDetail, requestList: requestsList, requestVariantList: requestVariantList
};

It looks like requestList: requestList should be requestList: requestsList than it workes fine. And the var requestsList was init but never used bevor.

0reactions
kuntalkcommented, Oct 9, 2018

Is this issue fixed? because I am still getting that error. @JamesRamm

Read more comments on GitHub >

github_iconTop Results From Across the Web

requestList is not defined in orders.bundle.js #164 - GitHub
When select a Order in the Wagtail Admin it shows in the JavaScript log ReferenceError: requestList is not defined from orders.bundle.js and ...
Read more >
require not defined error on bundled JS reactjs - Stack Overflow
Finally I've solved it! Problem was : it was trying to get variable react where as React.js on browser was providing variable React!...
Read more >
API - ESBuild
Imports that are defined at run-time (i.e. imports that depend on run-time code evaluation) are not bundled, since bundling is a compile-time operation....
Read more >
ListCaBundlesRequest | Oracle Cloud Infrastructure SDK for ...
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive. Optional limit. limit: undefined ...
Read more >
All other Rome fixes - ServiceNow Docs
Focus order is not logical for the 'Work notes' check box under the ... The client script is not executed on Agent Workspace...
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