aspnetboilerplate: aspnetboilerplate InvalidOperationException on first build

Stack Overflow

Downloaded latest stable version of aspnetboilerplate,

BUBYGqzu

Installed client libraries using libman.json restore, getting following strange errors on very first build

  1. InvalidOperationException
  2. Expected Identifier

0kfpdKUC

System.InvalidOperationException: No file exists for the asset at either location 'wwwroot\view-resources\Views\Account\Login.min.js' or 'wwwroot\view-resources\Views\Account\Login.min.js'.
   at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.ComputeFingerprintAndIntegrity(String identity, String originalItemSpec)
   at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.Execute()

Expected identifier: . \wwwroot\view-resources\Views\_Bundles\shared-layout.min.js

Expected expression: . \wwwroot\view-resources\Views\_Bundles\shared-layout.min.js

actually wwwroot\view-resources\Views\Account\Login.min.js file exists

Stackoverflow

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 32 (13 by maintainers)

Commits related to this issue

Most upvoted comments

  1. Downloaded latest stable version of aspnetboilerplate v10.0.1
  2. Restored nuget packages
  3. Installed latest nodejs then executed:
npm install --global yarn
npm run create-bundles
  1. Now build is successful

Hi @PCAssistSoftware

Swagger is not integrated in Mvc project. Here you can use Host project or integrate swagger for Mvc project. Here you can use the ConfigureSwagger settings in Startup.cs in the Host project to integrate swagger into Mvc.

whoops, sorry! - now working perfectly!

Open command prompt to the *.mvc project and ran “npm run create-bundles”, this seemed to complete successfully (output below), but site still doesn’t display correctly.

PS C:\Users\User\Downloads\boilertest3\10.0.0\aspnet-core\src> cd .\boilertest3.Web.Mvc
PS C:\Users\User\Downloads\boilertest3\10.0.0\aspnet-core\src\boilertest3.Web.Mvc> npm run create-bundles

abptemplate@10.1.0 create-bundles yarn && gulp buildDev

yarn install v1.22.22 info No lockfile found. [1/4] Resolving packages… warning admin-lte > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 warning admin-lte > flag-icon-css@3.5.0: The project has been renamed to flag-icons warning admin-lte > bootstrap-colorpicker@3.4.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning admin-lte > bootstrap-colorpicker > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 warning admin-lte > tempusdominus-bootstrap-4 > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 warning gulp > vinyl-fs > glob-stream > glob@7.2.3: Glob versions prior to v9 are no longer supported warning gulp > glob-watcher > chokidar > fsevents@1.2.13: Upgrade to fsevents v2 to mitigate potential security issues warning gulp > vinyl-fs > glob-stream > unique-stream > through2-filter@3.1.0: this package has been deprecated for breaking semver major warning gulp > vinyl-fs > glob-stream > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated warning gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated warning gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated [2/4] Fetching packages… [3/4] Linking dependencies… warning “admin-lte > bootstrap-switch@3.3.4” has incorrect peer dependency “bootstrap@^3.1.1”. warning “admin-lte > bootstrap-colorpicker > bootstrap@5.3.3” has unmet peer dependency “@popperjs/core@^2.11.8”. warning “admin-lte > tempusdominus-bootstrap-4@5.39.2” has incorrect peer dependency “moment-timezone@^0.5.31”. warning “admin-lte > tempusdominus-bootstrap-4@5.39.2” has unmet peer dependency “tempusdominus-core@5.19.3”. warning " > bootstrap@4.6.0" has unmet peer dependency “popper.js@^1.16.1”. [4/4] Building fresh packages… success Saved lockfile. Done in 37.87s. [13:16:20] No gulpfile found

its something related to shared-layou.min.js, I think build is not able to generate this file

image