Skip to content

SSR doesn't work #93

Open
Open

Description

@levonka

First I ran the npm run build:ssr command, then npm run serve:ssr, but the error occurred in the console:
package.json does not exist at fireship-starter/dist/package. json
The same thing happens with the npm run dev:ssr command

Activity

  1. HarrisonMayotte commented on May 29, 2020

    @HarrisonMayotte

    Can you share your angular.json file?

  2. PrivateDev315 commented on Jun 2, 2020

    @PrivateDev315

    Hey, I got the same error, and I have followed the tutorial. ng serve works fine same does my npm run build:ssr but then running npm run serve:ssr breaks it with the very same error. I haven't changed any files other than the environment files and obviously the five-step tutorial related files.

    I did manage to fix it by adding --bundleDependencies none to my build, however not sure if this is the good, since it gives me a different error

    I have attached my angular.json
    angular.zip

    The error given after --bundleDependencies none
    unknown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions