Title: Producing a working SpaServices NuGet package · Issue #261 · aspnet/JavaScriptServices · GitHub
Open Graph Title: Producing a working SpaServices NuGet package · Issue #261 · aspnet/JavaScriptServices
X Title: Producing a working SpaServices NuGet package · Issue #261 · aspnet/JavaScriptServices
Description: I am unable to create a working NuGet package for SpaServices locally on my Windows machine (tried dev and master branches). Following a dotnet restore, I am running the following from both NodeServices and SpaServices directories. dotne...
Open Graph Description: I am unable to create a working NuGet package for SpaServices locally on my Windows machine (tried dev and master branches). Following a dotnet restore, I am running the following from both NodeSer...
X Description: I am unable to create a working NuGet package for SpaServices locally on my Windows machine (tried dev and master branches). Following a dotnet restore, I am running the following from both NodeSer...
Opengraph URL: https://github.com/aspnet/JavaScriptServices/issues/261
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Producing a working SpaServices NuGet package","articleBody":"I am unable to create a working NuGet package for `SpaServices` locally on my Windows machine (tried dev and master branches). Following a `dotnet restore`, I am running the following from both `NodeServices` and `SpaServices` directories.\n\n``` bash\ndotnet pack -c Release --version-suffix custom-1 -o /c/dev/nuget\n```\n\nIn my project, `SpaServices` will successfully upgrade from the official package to my custom version (with as yet unchanged source), however the next `dotnet run` fails at `UseWebpackDevMiddleware()` with the exception below. I've checked my cache in ~/.nuget and everything appears to be in order with the package.\n\n```\nUnhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---\u003e System.AggregateException: One or more errors occurred. (Call to Node module failed with error: Error: Cannot find module 'C:\\Users\\Matt\\AppData\\Local\\Temp\\tmp2C5.tmp'\n at Function.Module._resolveFilename (module.js:440:15)\n at Function.Module._load (module.js:388:25)\n at Module.require (module.js:468:17)\n at require (internal/module.js:20:19)\n at C:\\Users\\Matt\\AppData\\Local\\Temp\\tmp382.tmp:104:34\n at IncomingMessage.\u003canonymous\u003e (C:\\Users\\Matt\\AppData\\Local\\Temp\\tmp382.tmp:128:35)\n at emitNone (events.js:86:13)\n at IncomingMessage.emit (events.js:185:7)\n at endReadableNT (_stream_readable.js:973:12)\n at _combinedTickCallback (internal/process/next_tick.js:74:11)) ---\u003e System.Exception: Call to Node module failed with error: Error: Cannot find module 'C:\\Users\\Matt\\AppData\\Local\\Temp\\tmp2C5.tmp'\n at Function.Module._resolveFilename (module.js:440:15)\n at Function.Module._load (module.js:388:25)\n at Module.require (module.js:468:17)\n at require (internal/module.js:20:19)\n at C:\\Users\\Matt\\AppData\\Local\\Temp\\tmp382.tmp:104:34\n at IncomingMessage.\u003canonymous\u003e (C:\\Users\\Matt\\AppData\\Local\\Temp\\tmp382.tmp:128:35)\n at emitNone (events.js:86:13)\n at IncomingMessage.emit (events.js:185:7)\n at endReadableNT (_stream_readable.js:973:12)\n at _combinedTickCallback (internal/process/next_tick.js:74:11)\n at Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.\u003cInvokeExportAsync\u003ed__7`1.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\n at Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.\u003cInvokeExportAsync\u003ed__12`1.MoveNext()\n\n--- End of stack trace from previous location where exception was thrown ---\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\n at Microsoft.AspNetCore.NodeServices.NodeServicesImpl.\u003cInvokeExportWithPossibleRetryAsync\u003ed__9`1.MoveNext()\n --- End of inner exception stack trace ---\n at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\n at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\n at Microsoft.AspNetCore.Builder.WebpackDevMiddleware.UseWebpackDevMiddleware(IApplicationBuilder appBuilder, WebpackDevMiddlewareOptions options)\n at Trainline.ContactCentre.Host.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env)\n --- End of inner exception stack trace ---\n at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\n\n at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\n at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\n at Microsoft.AspNetCore.Hosting.Internal.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)\n at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()\n at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()\n at Trainline.ContactCentre.Host.Program.Main(String[] args)\n```\n\nFrom Startup.cs:\n\n``` csharp\napp.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions\n{\n HotModuleReplacement = true,\n ReactHotModuleReplacement = true\n});\n```\n\nMy packages.json:\n\n``` json\n{\n \"version\": \"0.1.0\",\n \"buildOptions\": {\n \"debugType\": \"portable\",\n \"emitEntryPoint\": true,\n \"preserveCompilationContext\": true\n },\n \"dependencies\": {\n \"Microsoft.AspNetCore.Diagnostics\": \"1.0.0\",\n \"Microsoft.AspNetCore.Mvc\": \"1.0.0\",\n \"Microsoft.AspNetCore.Server.Kestrel\": \"1.0.0\",\n \"Microsoft.AspNetCore.SpaServices\": \"1.0.0-custom-1\",\n \"Microsoft.AspNetCore.StaticFiles\": \"1.0.0\",\n \"Microsoft.Extensions.Configuration.CommandLine\": \"1.0.0\",\n \"Microsoft.Extensions.Configuration.EnvironmentVariables\": \"1.0.0\"\n },\n \"frameworks\": {\n \"netcoreapp1.0\": {\n \"dependencies\": {\n \"Microsoft.NETCore.App\": {\n \"type\": \"platform\",\n \"version\": \"1.0.0\"\n }\n },\n \"imports\": \"dnxcore50\"\n }\n }\n}\n```\n","author":{"url":"https://github.com/mattwcole","@type":"Person","name":"mattwcole"},"datePublished":"2016-08-14T22:02:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/261/JavaScriptServices/issues/261"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ba23c1be-62d2-7595-2ab3-c5bdc553598c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E07A:14F335:5501D44:6EEC485:69751F8A |
| html-safe-nonce | bf7b82cf558bd2946310b492cb4c7b538285f1615318098df27111d9292abcb4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDdBOjE0RjMzNTo1NTAxRDQ0OjZFRUM0ODU6Njk3NTFGOEEiLCJ2aXNpdG9yX2lkIjoiNjE2NTE5NTE1MTY1NjY4OTU0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3838a7d27fcc1104f139523c34a0709e612c7f76719c499a15a173b9d769576c |
| hovercard-subject-tag | issue:171081288 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aspnet/JavaScriptServices/261/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c4161f9338567ded714fe09d015ea791a13f74ed96fc8f56c7af2691143a4a8e/aspnet/JavaScriptServices/issues/261 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c4161f9338567ded714fe09d015ea791a13f74ed96fc8f56c7af2691143a4a8e/aspnet/JavaScriptServices/issues/261 |
| og:image:alt | I am unable to create a working NuGet package for SpaServices locally on my Windows machine (tried dev and master branches). Following a dotnet restore, I am running the following from both NodeSer... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mattwcole |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/aspnet/JavaScriptServices git https://github.com/aspnet/JavaScriptServices.git |
| octolytics-dimension-user_id | 6476660 |
| octolytics-dimension-user_login | aspnet |
| octolytics-dimension-repository_id | 45365298 |
| octolytics-dimension-repository_nwo | aspnet/JavaScriptServices |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45365298 |
| octolytics-dimension-repository_network_root_nwo | aspnet/JavaScriptServices |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width