-
Bug
-
Resolution: Fixed
-
Trivial
-
None
When building blueocean on windows the build breaks with
[INFO] [13:01:55] Browserify bundle processing error [INFO] [13:01:55] error: Error: Cannot find module '..srcmainjs/AdminNavLink.jsx' from 'C:\Develop\blueocean\blueocean-dashboard\target' [ERROR] [ERROR] C:\Develop\blueocean\blueocean-dashboard\node_modules\@jenkins-cd\js-builder\index.js:555 [ERROR] throw 'Browserify bundle processing error. See above for details.';
the cause is the path writen to jenkins-js-extension.jsx the \ is not escaped correctly
changing
var relPath = path.relative(targetRoot, srcRoot);
to
var relPath = path.relative(targetRoot, srcRoot).split("\\").join("\\\\");
solves the problem for me (in @jenkins-cd\subs\extensions-bundle.js)