Esri / esri-wab-build

Package used to build ESRI Web App Builder Apps for production.
Apache License 2.0
17 stars 5 forks source link

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

Open Biboba opened 6 years ago

Biboba commented 6 years ago

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 commented 6 years ago

Hi,

Are you seeing any issues with the built application, or just the error in the logs?

On Thu, Apr 19, 2018, 3:47 PM Biboba notifications@github.com wrote:

Hi,

No matter which I choose I get this error:

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

Any idea ?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gbochenek/esri-wab-build/issues/51, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1zZgXQQDKqoOwUc2mSFbl57pVsWE8Uks5tqOnkgaJpZM4TcZC2 .

Biboba commented 6 years ago

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

So my build fails (among other errors https://github.com/gbochenek/esri-wab-build/issues/47)

gbochenek commented 6 years ago

We generally don't see any missing output from build errors. With the current state of this tool, some errors are to be expected. If you are incorporating the tool into some sort of CI, you will need to tell your CI system not to fail on an error.

If you are not receiving a built output at all, there may be something else going on with these errors as a red herring. Can you double check to ensure there is no dist folder with buildOutput?

Thanks, George

On Thu, Apr 19, 2018 at 3:54 PM Biboba notifications@github.com wrote:

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

So my build fails (among other errors #47 https://github.com/gbochenek/esri-wab-build/issues/47)

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/gbochenek/esri-wab-build/issues/51#issuecomment-382860778, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1zZhSg16cmQvSCmHvb8lwI2pNCTO2Uks5tqOtzgaJpZM4TcZC2 .

Biboba commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Nobody facing the same issue ?