Mendix Academy Crash Course Module 11 not compiling

0
I am unable to compile the application at the end of module 11 where nanoflows are added. I get a warning at the ‘build deployment structures’ step that compilation of javascript actions failed. This error also reproduces after I pull down the completed module package from the academy and try to run it. Below is the error detail:   [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve '\\mac\Home\Documents\Mendix\Summerhill_Hospital_Module11Completed-main\deployment\tmp\jsactions' in 'C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node'     at C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\webpack\lib\Compilation.js:2014:28     at C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\webpack\lib\NormalModuleFactory.js:791:13     at eval (eval at create (C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1)     at C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\webpack\lib\NormalModuleFactory.js:265:22     at eval (eval at create (C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:35:1)     at C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\webpack\lib\NormalModuleFactory.js:427:22     at C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\webpack\lib\NormalModuleFactory.js:111:11     at C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\webpack\lib\NormalModuleFactory.js:663:25     at C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\webpack\lib\NormalModuleFactory.js:848:8     at C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\webpack\lib\NormalModuleFactory.js:968:5 resolve '\\mac\Home\Documents\Mendix\Summerhill_Hospital_Module11Completed-main\deployment\tmp\jsactions' in 'C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node'   Parsed request is a module   No description file found in C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node or above   resolve as module     looking for modules in C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules       single file module         No description file found in C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\mac\Home\Documents\Mendix\Summerhill_Hospital_Module11Completed-main\deployment\tmp or above         no extension           C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\mac\Home\Documents\Mendix\Summerhill_Hospital_Module11Completed-main\deployment\tmp\jsactions doesn't exist         .js           C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\mac\Home\Documents\Mendix\Summerhill_Hospital_Module11Completed-main\deployment\tmp\jsactions.js doesn't exist         .json           C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\mac\Home\Documents\Mendix\Summerhill_Hospital_Module11Completed-main\deployment\tmp\jsactions.json doesn't exist         .wasm           C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\mac\Home\Documents\Mendix\Summerhill_Hospital_Module11Completed-main\deployment\tmp\jsactions.wasm doesn't exist       C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node\node_modules\mac\Home\Documents\Mendix\Summerhill_Hospital_Module11Completed-main\deployment\tmp\jsactions doesn't exist     C:\Program Files\Mendix\9.12.4.47318\modeler\tools\node_modules doesn't exist or is not a directory     C:\Program Files\Mendix\9.12.4.47318\modeler\node_modules doesn't exist or is not a directory     C:\Program Files\Mendix\9.12.4.47318\node_modules doesn't exist or is not a directory     C:\Program Files\Mendix\node_modules doesn't exist or is not a directory     C:\Program Files\node_modules doesn't exist or is not a directory     C:\node_modules doesn't exist or is not a directory
asked
1 answers
1

This occurs because you are using Parallels (or a similar virtual machine) on a Mac to run Windows. Studio Pro doesn’t like accessing projects over a network share when it compiles JavaScript actions. The solution is to create a letter drive in Windows to map to the Mac network drive. I use M: personally. Once you have done this, open your project from this letter drive in Windows and the application should be able to build.

I hope this helps.

answered