Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Angular 2 in debug mode not working with InputOutputStream #93

Closed

Description

@laskoviymishka

Steps to reproduce

  1. Open solution
  2. Select Angular2Spa from templates as startup project
  3. Change HostingModel by adding following code in ConfigureServices method:
            services.AddNodeServices(new NodeServicesOptions
            {
                HostingModel = NodeHostingModel.InputOutputStream
            });
  1. Open any page
  2. See exception
JsonReaderException: Unexpected character encountered while parsing value: A. Path '', line 0, position 0.

The issue

Page not load, and exception accured

JsonReaderException: Unexpected character encountered while parsing value: A. Path '', line 0, position 0.

Further technical details

This is pretty easy issue - right now InputOutputStreamNodeInstance wait for first recieved data from Node, and claim it as boot function response. With ng2 it not so, since in development mode it everytime produce message: Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
To fix this issue we need implement some kind of filtering our result. Root couse placed inside OnOutputDataReceived method in InputOutputStreamNodeInstance class.

Activity

  1. added a commit that references this issue on May 24, 2016
    8616dc9
  2. SteveSandersonMS commented on Jun 1, 2016

    @SteveSandersonMS
    Member

    As per discussion on the pull request, InputOutputStream is now obsolete and has been removed, so this issue no longer applies.

  3. laskoviymishka commented on Jun 1, 2016

    @laskoviymishka
    ContributorAuthor

    What is alternatives?

  4. laskoviymishka commented on Jun 1, 2016

    @laskoviymishka
    ContributorAuthor

    My bad, didn't mention pr sisscussion

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions