EB Custom Widget not able to connect to the layer from the map or directly to a layer

147
4
Tuesday
AbiDhakal
Frequent Contributor

Dear GIS friends,

I'm working on a custom widget, but I am not able to connect the widget to the map layers. When I add the widget to a map I get this error: 

Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings

Please help I'm naive.

Please see attached files if it helps.

I have done a lot of npm start on the server and client.

Thank you,
Abi


0 Kudos
4 Replies
JeffreyThompson2
MVP Frequent Contributor

That error doesn't mean much without context. It's probably a syntax error or an improper import statement. Can you post your code?

GIS Developer
City of Arlington, Texas
0 Kudos
AbiDhakal
Frequent Contributor

I can certainly do that. Please see attached.

Thank you very much.

0 Kudos
JeffreyThompson2
MVP Frequent Contributor

Are you having issues at runtime or in the Build Mode? The most questionable thing I am seeing is in the Setting.tsx. I don't think it is valid to assign and deconstruct in the same statement.

  const { useMapWidgetIds = [], useDataSources = [] } = props

This line should probably just be this:

  const { useMapWidgetIds, useDataSources } = props
GIS Developer
City of Arlington, Texas
0 Kudos
AbiDhakal
Frequent Contributor

I appreciate your response very much.
It is happening during runtime. I tried your suggestion and I still get the same error in runtime.
Abi

0 Kudos