Select to view content in your preferred language

Error copying query widget to your-extensions

456
1
09-04-2021 01:40 PM
WaterHammer
Occasional Contributor

Using arcgis-experience-builder-1.5.

I am unable to copy the query widget from /client/dist/widgets/arcgis/query into /client/your-extensions/widgets without getting an error when starting the client. 

Every other widget that I have copied from /client/dist/widgets into /client/your-extensions/widgets works great.

When trying to do that with the query widget, I get the following error message when starting the client:

Module not found: Error: Can't resolve './jimu-ui/advanced/lib/map' in 'C:\Users\Main\Desktop\arcgis-experience-builder-1.5\ArcGISExperienceBuilder\client\your-extensions\widgets\query1\src\setting\components'

I think it's getting stuck on "import { SymbolSelector, SymbolItem } from 'jimu-ui/advanced/lib/map'" in the symbol-picker.tsx but I have been unable to fix.

Any help is greatly appreciated. 

0 Kudos
1 Reply
TimWestern
Frequent Contributor

So, I thought when copying, in order to avoid overriding the existing one, or colliding with it you needed to make changes to the Manifest.json? IIRC I think either the name or id set in the manifest.json needs to be unique.  The label can be the same, but you may end up with two of them showing.

But based on that error, I would wager if you look at all of the imports, I ran into this the other day, 1.4 doesn't seem to like anything for me in jimu-ui/advanced/lib (or deeper nested)


Try this and see if it resolves:

import { SymbolSelector, SymbolItem } from 'jimu-ui/advanced'



0 Kudos