Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error(311) Missing dependency ./panels/jimu/Panel #51

Open
Biboba opened this issue Apr 19, 2018 · 7 comments
Open

error(311) Missing dependency ./panels/jimu/Panel #51

Biboba opened this issue Apr 19, 2018 · 7 comments

Comments

@Biboba
Copy link

Biboba commented Apr 19, 2018

Hi,

No matter which theme I choose I get this error:

error(311) Missing dependency. module: themes/DartTheme/_build-generate_module; dependency: ./panels/jimu/Panel

Any idea ?

Thanks

@gbochenek
Copy link
Contributor

gbochenek commented Apr 19, 2018 via email

@Biboba
Copy link
Author

Biboba commented Apr 19, 2018

I received this error when building the application with:
npm run build

So my build fails (among other errors #47)

@gbochenek
Copy link
Contributor

gbochenek commented Apr 20, 2018 via email

@Biboba
Copy link
Author

Biboba commented Apr 22, 2018

Hi @gbochenek,

Thanks for the answer.
No build is output because of this error and no CI involved as well.

I digged a bit and found the following:
in my app configuration config.json, in the section widgetOnScreen, I have the panel section which according to the documentation is the default value:

"panel": { "uri": "jimu/OnScreenWidgetPanel", "position": { "relativeTo": "map" } }

And the wrong dependency ./panels/jimu/Panel is created there:
https://github.com/gbochenek/esri-wab-build/blob/master/app/utilscripts.js#L234-L240

Also, if I hardcode the module to be pushed as "../../jimu/OnScreenWidgetPanel", I do not have any error anymore:
modules.push("../../jimu/OnScreenWidgetPanel");

@gbochenek
Copy link
Contributor

Thanks for the info! Is there anything custom with your application, or does this happen with the default app set to the Dart theme?

@Biboba
Copy link
Author

Biboba commented Apr 23, 2018

Hi,

No it happens with a really basic setup. As a test, I just downloaded 2.7 version of WAB (was working with 2.6), created a very basic app (BillboardTheme with simple WebMap with an ESRI default basemap), and saved the app.

If I have a look at the config.json of the webapp, I have once again in the section widgetOnScreen:
"panel": { "uri": "jimu/OnScreenWidgetPanel", "position": { "relativeTo": "map" } }
as it is the default value, and get when running npm run build:
error(311) Missing dependency. module: themes/BillboardTheme/_build-generate_module; dependency: ./panels/jimu/Panel

You don't have this issue on your side ?

Thanks !

@Biboba
Copy link
Author

Biboba commented May 28, 2018

Nobody facing the same issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants