I know that there is already questions like this that has answers to it, but i tried the most common solutions and i have been unsuccessful.
I'm cloning an angular 4 project from github and i do an npm install and i get this error when i run ng serve.
Local workspace file ('angular.json') could not be found. Error: Local
workspace file ('angular.json') could not be found.
at WorkspaceLoader._getProjectWorkspaceFilePath (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/workspace-loader.js:37:19)
at WorkspaceLoader.loadWorkspace (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/workspace-loader.js:24:21)
at BuildCommand._loadWorkspaceAndArchitect (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:180:32)
at BuildCommand. (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:47:25)
at Generator.next ()
at /Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:7:71
at new Promise ()
at __awaiter (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:3:12)
at BuildCommand.initialize (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/architect-command.js:46:16)
at Object. (/Users/poweruser/Applications/nodework/angular4-file-upload/node_modules/#angular/cli/models/command-runner.js:87:23)
My node version is
v8.11.2
My angular version is
Angular CLI: 6.0.8
Node: 8.11.2
OS: darwin x64
Angular: 4.1.3
Any suggestions on what i should do ?
Try downgrading your project version of angular-cli to a version that's compatible with ng4...or upgrade the ng4 app to ng6
Related
angular-cli used to work perfectly, but now I don't know why when creating a new project it doesn't run the server.
I tried reinstalling angular-cli.
I create a new app with ng new app.
I navigate into the /app/ path, run ng serve and I get:
No errors
Error: No errors
at validate (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\extract-text-webpack-plugin\schema\validator.js:10:9)
at Function.ExtractTextPlugin.extract (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\extract-text-webpack-plugin\index.js:188:3)
at C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\models\webpack-build-styles.js:79:83
at Array.map (native)
at Object.getWebpackStylesConfig (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\models\webpack-build-styles.js:76:43)
at new NgCliWebpackConfig (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\models\webpack-config.js:44:51)
at Class.run (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\tasks\serve-webpack.js:23:22)
at C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\commands\serve.run.js:37:22
at process._tickCallback (internal/process/next_tick.js:103:7)
From an Angular CLI developer:
This problem arises from a recent update in a external dependency and it's not fixable without a CLI release right now.
He also confirmed that the workaround is to install the dependency at version 2.0.0-rc.0:
npm install extract-text-webpack-plugin#2.0.0-rc.0 --save-dev
Created new app with
ember new app-name
version: 1.13.13
node: 5.5.0
npm: 2.14.10
os: linux x64
After running
"ember s"
App works proper in browser
As per guide at https://github.com/dgeb/ember-engines for running ember engine ran below command
ember install ember-engines
rm -rf bower_components
bower install --save ember#canary #Choosed ember#canary from prompt
bower install
And now when i do "ember s" app gets compile properly in CLI but app gets crash in browser and i see nothing in browser.
In console i see below error message
Uncaught Error: Could not find module ember-views/views/select
Tried debugging it, Could not find solution. Is i am missing somthig basic here ?
Note :: I am new to ember. I think this would be small one but could not find solution on web as well.
Sorry about that! There were a few commits/fixes on master that hadn't been released yet.
I just released v0.2.1 which should clear this up for you.
I'm starting with ember. I followed the Getting Started guide at emberjs.com and managed to create a new ember application by running the following commands:
npm install -g ember-cli
ember new sample-app
Everything went successful and I can see the app files generated by ember-cli. Soon after that I did:
ember server
The command line shows:
version: 1.13.13
Livereload server on http://localhost:49153
Serving on http://localhost:4200/
Build successful - 4426ms.
Slowest Trees | Total
----------------------------------------------+---------------------
ConcatWithMaps: Concat: Vendor | 3498ms
Slowest Trees (cumulative) | Total (avg)
----------------------------------------------+---------------------
ConcatWithMaps: Concat: Vendor (1) | 3498ms
The problem comes when I go to http://localhost:4200. Nothing gets loaded and the Chrome console is showing the following:
Uncaught Error: Assertion Failed: Ember Views require jQuery between 1.7 and 2.1
Uncaught Error: Could not find module `ember` imported from `sample-app/app`
I tried to fix this by reinstalling ember-cli, bower and npm but nothing is working.
Here's additional info in case is necessary:
$ ember -v
version: 1.13.13
node: 5.4.0
npm: 2.14.10
os: darwin x64
$ npm -v
3.5.3
$ bower -v
1.7.2
Help is much appreciated. Thanks in advance!
This is a bug due to a new version of jQuery which ember is not yet able to handle. For now you can change the following line in your bower.json file. Then run bower install and it should work.
"jquery": "^1.11.3",
to
"jquery": "1.11.3",
A new version of ember.js is imminent which should fix this.
I'm attempting to install (via cloned repository) 'iron-router' for my Meteor project in Windows 7.
( Repo: https://github.com/EventedMind/iron-router )
The output is the following:
While building package `iron-router`:
error: no such package: 'reactive-dict#1.0.0'
error: no such package: 'deps#1.0.0'
error: no such package: 'underscore#1.0.0'
error: no such package: 'ejson#1.0.0'
error: no such package: 'jquery#1.0.0'
error: no such package: 'ui#1.0.0'
error: no such package: 'iron'
error: no such package: 'cmather'
error: no such package: 'webapp#1.0.0'
Anyway, these are all stock packages that seem to be in %LOCALAPPDATA%/.meteor/packages, because I checked to make sure all the directories were there.
Any thoughts? I've been developing in Linux for a while now, but I figured if I could get things working in Windows it would be nice if I were too lazy to bother with rebooting (dual-boot environment) after gaming, etc.
Thanks in advance for any help.
The changelog specifies that iron:router#0.9.0 just came out on 2014-08-12.
https://github.com/EventedMind/iron-router/blob/devel/History.md
The latest version of iron:router has been updated to use the new package system which can only be used with meteor 0.9 release candidates.
From your error log, I can tell the iron-router version you cloned from the repo is actually the latest designed for the new package system (deps#1.0.0 used to be just deps without version number) and it complains that it can't find the meteor core packages it depends on, because you're probably running meteor 0.8.3 instead of 0.9-rc?.
What you need to do is fetch iron-router v0.8.2 from the git repo, the commit sha1 is 05415a8891ea87a00fb1e2388585f2ca5a38e0da
Cloning a git repo from a specific commit hash is a different topic, here is a SO answer to get you started : How to clone git repository with specific revision/changeset?
I am getting following error while creating new project whith ionicFramework, any one have idea how to resolve it.
DOWNLOADING: https://github.com/driftyco/ionic-app-base/archive/master.zip
C:\Users\...\AppData\Roaming\npm\node_modules\ionic\lib\ionic.js:256
if<res.statusCode !==200> {
TypeError: Cannot read property 'statusCode' of undefined
atRequest._callback(C:\Users\...\AppData\Roaming\npm\node_modules\ionic\lib\ionic.js:256
ic\lib\ionic.js:257:13)
at self.callback (C:\Users\...\AppData\Roaming\npm\node_modules\ionic\lib\ionic.js:256
ic\lib\ionic.js:129:22)
at Request.EventEmitter.emit (events.js:95:17)
at ClientRequest.self.clientErrorHandler (C:\Users\...\AppData\Roaming\
npm\node_modules\ionic\node_modules\request\request.js:239:10)
at ClientRequest.EventEmitter.emit (events.js:95:17)
at CleartextStream.socketErrorListener (http.js:1547:9)
at CleartextStream.EventEmitter.emit (events.js:95:17)
at SocketPair.<anonymous>(tls.js:1384:19)
at SocketPair.emit (events.js:92:17)
at SocketPair.maybeInitFinished(tls.js:977:10)
Update your version of the ionic CLI tool first. Alternatively you could manually start the app.
Download the base app and unzip into your directory. https://github.com/driftyco/ionic-app-base
Download the blank template and merge files into the same directory. https://github.com/driftyco/ionic-starter-blank
Run bower install to make sure bower assets are up to date
Run npm install to install assets for gulp to build sass (optional if you don't use sass)
Thats just what the ionic start command does in a nutshell.
Check if you have 'tutorial' in your Ionic Starter templates :
ionic start --list
If It's not in the list, you must add it to the list by Updating your Ionic Framework:
Update Ionic CLI : sudo npm install -g ionic
Update Ionic Library : ionic lib update
Update Apache Cordova : sudo npm install -g cordova