Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Create-bundles not working #8657


User avatar
0
darutter0508 created

I have just purchased Asp.Net Zero and am attempting to get things set up to start working with the project. I've installed Node.js and Yarn per the instructions and tried running the create-bundles process. This fails with the following error: npm run create-bundles

[email protected] create-bundles /Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc gulp buildDev

internal/modules/cjs/loader.js:985 throw err; ^

Error: Cannot find module 'merge-stream' Require stack:

  • /Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc/gulpfile.js
  • /Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js
  • /Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc/node_modules/gulp/node_modules/gulp-cli/index.js
  • /Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc/node_modules/gulp/bin/gulp.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15) at Function.Module._load (internal/modules/cjs/loader.js:864:27) at Module.require (internal/modules/cjs/loader.js:1044:19) at require (internal/modules/cjs/helpers.js:77:18) at Object.<anonymous> (/Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc/gulpfile.js:3:13) at Module._compile (internal/modules/cjs/loader.js:1158:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) at Module.load (internal/modules/cjs/loader.js:1002:32) at Function.Module._load (internal/modules/cjs/loader.js:901:14) at Module.require (internal/modules/cjs/loader.js:1044:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc/gulpfile.js', '/Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js', '/Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc/node_modules/gulp/node_modules/gulp-cli/index.js', '/Users/davidrutter/Projects/Sapphire/src/Sapphire.Web.Mvc/node_modules/gulp/bin/gulp.js' ] }

Because the bundles don't create properly, the app does not function as it should. I cannot login or change tenant. Please advise as to the problem and how to fix it.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    Do you execute the yarn command to restore packages before executing the npm run create-bundles command.

    see https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Getting-Started-Core#configure-the-project