Custom widget - Error: Cannot find a widget entry file

1
Hi guys,    Any suggestion on this errer: Error: Cannot find a widget entry file This occurs at the moment I run “npm run build” command to wrap up code into mpk widget.  --------------------------------------------- PS C:\Users\DavidMandic\Documents\Mendix\scandit-wrapper-main\myWidgets\test> npm run build  > scandit-websdk-react@0.1.0 build > pluggable-widgets-tools build:web Checking node and npm version... Checking if dependencies should be migrated... Dependencies up-to-date. Running MX Widgets Tools script build:web... [!] Error: Cannot find a widget entry file Error: Cannot find a widget entry file     at Object.<anonymous> (C:\Users\DavidMandic\Documents\Mendix\scandit-wrapper-main\myWidgets\test\node_modules\@mendix\pluggable-widgets-tools\configs\rollup.config.js:84:11)     at Module._compile (node:internal/modules/cjs/loader:1218:14)     at Object.require.extensions.<computed> [as .js] (C:\Users\DavidMandic\Documents\Mendix\scandit-wrapper-main\myWidgets\test\node_modules\rollup\dist\shared\loadConfigFile.js:621:20)     at Module.load (node:internal/modules/cjs/loader:1081:32)     at Function.Module._load (node:internal/modules/cjs/loader:922:12)     at Module.require (node:internal/modules/cjs/loader:1105:19)     at require (node:internal/modules/cjs/helpers:103:18)     at loadConfigFromBundledFile (C:\Users\DavidMandic\Documents\Mendix\scandit-wrapper-main\myWidgets\test\node_modules\rollup\dist\shared\loadConfigFile.js:631:42)     at getDefaultFromTranspiledConfigFile (C:\Users\DavidMandic\Documents\Mendix\scandit-wrapper-main\myWidgets\test\node_modules\rollup\dist\shared\loadConfigFile.js:613:12)     at loadConfigFile (C:\Users\DavidMandic\Documents\Mendix\scandit-wrapper-main\myWidgets\test\node_modules\rollup\dist\shared\loadConfigFile.js:572:11)     ------------------------------------------------------------------   Kind regards, David Mandic 
asked
2 answers
0

Looks like your missing some dependencies? Have you tried running this before deployment:

answered
0

Could it be that you didnt follow all the steps told by the widget documentation?
did you create the widget by using the commands provided by mendix or on your own? perhaps there are folders which the plugin scripts expects and you dont have? (e.g.: CustomWidgets folder in the root of the test project. Inside it the widget of yours which when bootstraps has a question of where is your project to which the answer is two leves up)

answered