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
Related
Error while upgrading to ng9/ivy with ng update
I have cleared out my node_modules folder before starting the run.
used:
npm install --no-save #angular/cli#^8.3.18
ng update #angular/cli #angular/core --next
seems to fail on: experimental mdc-menu somewhere?
If I try to run after that, it doesn't load the application.
removing ng-dragula fixed the issue for dragula
I am getting the below error when doing next build in my next.js app, after it's been working fine with just next (or npm run dev).
The error:
$ next build
The module 'react-dom' was not found. Next.js requires that you include it in 'dependencies' of your 'package.json'. To add it, run 'npm install --save react-dom'
Creating an optimized production build ...
> Using external babel configuration
> Location: "../.babelrc"
Failed to compile.
./pages/_app.js
Module not found: Can't resolve 'next/head' in '../pages'
> Build error occurred
Error: > Build failed because of webpack errors
at build (.../AppData/Roaming/npm/node_modules/next/dist/build/index.js:7:847)
I started my project by cloning Material UI's next.js example and just use that as it seems updated:
https://github.com/mui-org/material-ui/tree/master/examples/nextjs
However, thinking I just may of have an outdated or broken build, I re-cloned the next.js example and did next build as well, without modifying any files and I get the same error.
How can I fix this?
I just cloned that next.js example and it worked both with npm run dev, as well as npm run build->npm run start.
Judging by your error, I would check that "react-dom": "latest" is present in your package.json's dependencies. Did you run npm install after cloning the example?
The solution to this problem is to Just rerun these two commands again then your project will successfully Run. I also faced this problem but I got the solution.
npm i
yarn install
I ran into a similar problem when I included my nextjs app in a yarn workspace. I got around the issue by deleting the following directories in my nextjs app:
node_modules
.next
build
After removing them I ran yarn from the repo directory and started the nextjs app back up and it was working again.
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
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 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