Giter Site home page Giter Site logo

Code fails to run about angular-truffle-box HOT 11 CLOSED

quintor avatar quintor commented on July 23, 2024
Code fails to run

from angular-truffle-box.

Comments (11)

pimotte avatar pimotte commented on July 23, 2024

Can you let me know versions for:
Node.js, NPM, truffle, angular-cli, testrpc and your operating system?

from angular-truffle-box.

pimotte avatar pimotte commented on July 23, 2024

angular/angular-cli#4919 and angular/angular-cli#4207 suggest these kinds of issues are commonly caused by angular-cli config files in your home directory. Maybe that's the case for you as well?

from angular-truffle-box.

cisrakesh avatar cisrakesh commented on July 23, 2024

Any solutions ? checked angular/angular-cli#4207 and angular/angular-cli#4919 , but no solutions works.

from angular-truffle-box.

pimotte avatar pimotte commented on July 23, 2024

angular/angular-cli#7884 and angular/angular-cli#6698 also look relevant.

from angular-truffle-box.

srfrnk avatar srfrnk commented on July 23, 2024

I did find a .angular-cli.json under my home folder and deleted that.
Works great now. 10x.

from angular-truffle-box.

cisrakesh avatar cisrakesh commented on July 23, 2024

deleting .angular-cli.json give this error
Cannot read property 'config' of null
TypeError: Cannot read property 'config' of null
at Class.run (/var/www/html/angcliapp/node_modules/@angular/cli/tasks/serve.js:51:63)
at check_port_1.checkPort.then.port (/var/www/html/angcliapp/node_modules/@angular/cli/commands/serve.js:121:26)
at
at process._tickCallback (internal/process/next_tick.js:188:7)

from angular-truffle-box.

pimotte avatar pimotte commented on July 23, 2024

To be clear, you shouldn't be deleting the .angular-cli.json in the project itself, but any that remains in your home directory. I also recommend reinstalling all dependencies and checking out everything again

from angular-truffle-box.

cisrakesh avatar cisrakesh commented on July 23, 2024

Had searched on my harddisk , hasn't found .angular-cli.json on any other place . Still getting this error

sudo ng serve
/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:226
this._children[name] = this._createChildProperty(name, value ? value[name] : undefined, forward ? forward.children[name] : null, propertySchema);
^

TypeError: Cannot read property 'glob' of null
at ObjectSchemaTreeNode._set (/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:226:132)
at new ObjectSchemaTreeNode (/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:211:14)
at OneOfSchemaTreeNode._createChildProperty (/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:150:26)
at OneOfSchemaTreeNode._typesPrototype.schema.oneOf.map (/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:163:25)
at Array.map ()
at OneOfSchemaTreeNode (/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:162:48)
at ArraySchemaTreeNode._createChildProperty (/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:150:26)
at ArraySchemaTreeNode._set (/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:288:39)
at new ArraySchemaTreeNode (/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:269:14)
at ObjectSchemaTreeNode._createChildProperty (/var/www/html/angappcli/node_modules/@ngtools/json-schema/src/schema-tree.js:150:26)

from angular-truffle-box.

pimotte avatar pimotte commented on July 23, 2024

Check if /root/.angular-cli.json exists.

I also recommend against running ng serve with sudo, that seems like a security risk.

from angular-truffle-box.

cisrakesh avatar cisrakesh commented on July 23, 2024

checked with locate -i ".angular-cli.json" , but haven't find any search result

from angular-truffle-box.

pimotte avatar pimotte commented on July 23, 2024

And if you do the instructions from scratch without using sudo?

from angular-truffle-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.