Angular 2 docker deployment throw prerendering error #1064

Closed
opened 2025-08-09 17:18:44 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @hendrathings on 1/31/2017

I got issue when try deploy to docker.
I run dotnet publish which

"scripts": {
    "prepublish": [ "npm install", "npm run build:vendor", "npm run build:prod" ],
    "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
  }

In my image, I copy publish folder to container. (FROM microsoft/dotnet)
When I run container which is CMD dotnet myapp.dll, it's throw error prerendering.
I had no idea with this issue.

any suggest? any advise?

Of course, I have try add node_modules and webpack config to container, but that is not best practice delivery with node_module since we have bundle webpack. Anyway not working, throw another error with need more add source typescript. nonsense.

*Originally created by @hendrathings on 1/31/2017* I got issue when try deploy to docker. I run `dotnet publish` which ```bash "scripts": { "prepublish": [ "npm install", "npm run build:vendor", "npm run build:prod" ], "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ] } ``` In my image, I copy publish folder to container. (`FROM microsoft/dotnet`) When I run container which is `CMD dotnet myapp.dll`, it's throw error prerendering. I had no idea with this issue. any suggest? any advise? Of course, I have try add node_modules and webpack config to container, but that is not best practice delivery with node_module since we have bundle webpack. Anyway not working, throw another error with need more add source typescript. nonsense.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1064
No description provided.