Having some trouble loading qwest.js
with the dojo (ArcGIS) AMD loader, encountering a multipleDefine
error.
require([
// `../vendor/react/react.js`, // this works fine
`../vendor/qwest/qwest.min.js`, // this causes error
], (
// React,
qwest,
) => { ... })
Initially, I suspected the issue was due to adding it as a package in the dojo config object, but even after doing so, the same error persists.
Config:
require({
async: true
, parseOnLoad: true
, packages: [{
name: `app`
, location: `${location.pathname}js`
, main: `main`
}]
}, [`app`])