-
Notifications
You must be signed in to change notification settings - Fork 429
Description
I can successfully F5 debug the application in Visual Studio 15.8.5 using the IIS Express debug profile. When I attempt to set the Docker Compose project to be the startup and F5 debug I get the following error
`An unhandled exception occurred while processing the request.
NodeInvocationException: Prerendering failed because of error: Error: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Missing binding /app/node_modules/node-sass/vendor/linux-x64-64/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 10.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 10.x
This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to download the binding for your current environment.
at module.exports (/app/node_modules/node-sass/lib/binding.js:15:13)
at Object. (/app/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.sassLoader (/app/node_modules/sass-loader/lib/loader.js:46:72)
at eval (webpack-internal:///./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./ClientApp/app/app.component.scss:1:7)
at Object../node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./ClientApp/app/app.component.scss (/app/ClientApp/dist/main-server.js:2307:1)
at webpack_require (/app/ClientApp/dist/main-server.js:26:30)
at eval (webpack-internal:///./ClientApp/app/app.component.scss:2:22)
at Object../ClientApp/app/app.component.scss (/app/ClientApp/dist/main-server.js:140:1)
at webpack_require (/app/ClientApp/dist/main-server.js:26:30)
at eval (webpack-internal:///./ClientApp/app/app.component.ts:89:22)
at eval (webpack-internal:///./ClientApp/app/app.component.ts:101:2)
at Module../ClientApp/app/app.component.ts (/app/ClientApp/dist/main-server.js:152:1)
at webpack_require (/app/ClientApp/dist/main-server.js:26:30)
Current directory is: /app
Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.InvokeExportAsync(NodeInvocationInfo invocationInfo, CancellationToken cancellationToken)`
Which is fairly intuitive that it seems the fact the the code is compiled in a Windows environment is being copied into a Linux container for execution and that is causing the issue. What do I need to change in order to get this debug scenario to work?