Unable to resolve dependency in Pluggable React Web Widget

0
We are creating a pluggable react widget for Mendix App, using iTwin/itwinjs-core libraries. We are creating the widget using this command – “yo @mendix/widget” (version 9.2.1). But we are facing an issue related to build. When we run build command “npm run build” we get following errors: Error: Error when using sourcemap for reporting an error: Can't resolve original location of error. [!] Error: unfinished hook action(s) on exit: (node-resolve) node_modules\@itwin\core-common\lib\esm\rpc\SnapshotIModelRpcInterface.js (9:17) Error: Error when using sourcemap for reporting an error: Can't resolve original location of error. [!] Error: unfinished hook action(s) on exit: (node-resolve) resolveId "@itwin/appui-abstract" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\ui\\UiSettingsPage.js" (node-resolve) resolveId "@itwin/itwinui-react" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\ui\\UiSettingsPage.js" (node-resolve) resolveId "@itwin/core-geometry" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\quantityformatting\\QuantityFormat.js" (node-resolve) resolveId "@itwin/core-frontend" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\quantityformatting\\QuantityFormat.js" (node-resolve) resolveId "@itwin/appui-abstract" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\quantityformatting\\QuantityFormat.js" (node-resolve) resolveId "@itwin/imodel-components-react" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\quantityformatting\\QuantityFormat.js" (node-resolve) resolveId "@itwin/core-react" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\quantityformatting\\QuantityFormat.js" (node-resolve) resolveId "@itwin/presentation-frontend" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\quantityformatting\\QuantityFormat.js" (node-resolve) resolveId "@itwin/itwinui-react" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\quantityformatting\\QuantityFormat.js" (node-resolve) resolveId "@itwin/itwinui-react" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\appui-react\\lib\\esm\\appui-react\\settings\\quantityformatting\\UnitSystemSelector.js" (node-resolve) resolveId "@itwin/core-geometry" "D:\\codebase\\mendix\\itwin-widget\\itwin-widget\\node_modules\\@itwin\\core-common\\lib\\esm\\AnalysisStyle.js"   Has anyone got this issue? It would be great if someone help us to resolve this issue.
asked
2 answers
2

Hi Amod,

There was a question like this before. You can check that. https://forum.mendix.com/link/questions/113028.​​​​​​​ I hope it works for you.

Kind regards,

Halil

answered
0

so how this problem been solved cause i’m facing the same problem ,  and the link is not working too

answered