Comments (11)
Can you let me know versions for:
Node.js, NPM, truffle, angular-cli, testrpc and your operating system?
from angular-truffle-box.
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.
Any solutions ? checked angular/angular-cli#4207 and angular/angular-cli#4919 , but no solutions works.
from angular-truffle-box.
angular/angular-cli#7884 and angular/angular-cli#6698 also look relevant.
from angular-truffle-box.
I did find a .angular-cli.json
under my home folder and deleted that.
Works great now. 10x.
from angular-truffle-box.
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.
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.
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.
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.
checked with locate -i ".angular-cli.json" , but haven't find any search result
from angular-truffle-box.
And if you do the instructions from scratch without using sudo?
from angular-truffle-box.
Related Issues (20)
- Trouble unboxing package HOT 7
- ERROR TypeError: web3_1.default is not a constructor HOT 5
- TypeChain HOT 10
- Error HOT 4
- Create Dockerfile HOT 1
- web3_1.default is not a constructor HOT 18
- Event example HOT 2
- Use Ganache instead of TestRPC HOT 4
- Updating angular cli to version 1.6.2 causes karma tests to fail HOT 2
- When try to unbox, can't find Python executable even it is already installed HOT 4
- Error: Contract has not been deployed to detected network (network/artifact mismatch) HOT 2
- Upgrade to angular 6.0 HOT 2
- Having trouble unboxing this box HOT 2
- Update to Angular 7 HOT 1
- accounts balance happend but dont refresh on ganache or metamask HOT 5
- Remove node-gyp subdependencies
- Revisit web3 integration
- truffle unbox Quintor/angular-truffle-box command problems HOT 3
- this truffle cant work with Metamask since this year (Chrome) HOT 1
- Unbox failing on windows 10 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-truffle-box.