Error running newly created app (v2) #253
Comments
From @rodrigograca31 on October 18, 2016 20:33
|
From @rodrigograca31 on October 19, 2016 22:4 @MasterProgrammer200 you should have posted your erro in text so it could be indexed..... |
This is an Thanks, |
Yes, they could get better error messages, but how do I solve this problem? |
@rodrigograca31, The issue is in your code, so you need to find out where it is in your code and fix it. Otherwise, the alternative is to not use Thanks, |
@danbucholtz On my code? Nope! |
Ahh, we were burned by a semver issue temporarily. Angular made some breaking changes to their compiler. Update your package.json and remove the Thanks, |
@danbucholtz I did what you said. still not working |
@danbucholtz Still not working like @swizard said .... Commands: ionic start app4 --v2 <-- app created
cd app4
cordova platform add android
ionic run android <-- error (just testing if it would work...)
nano package.json <-- removed ^ from "@ionic/app-scripts" and "typescript"
rm -rf node_modules/ <-- removed the modules folder
npm install <-- reinstalled them...
ionic run android <-- error again.... Error: (output from
|
You need to remove the Thanks, |
There was My package.json: {
"name": "ionic-hello-world",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"build": "ionic-app-scripts build",
"watch": "ionic-app-scripts watch",
"serve:before": "watch",
"emulate:before": "build",
"deploy:before": "build",
"build:before": "build",
"run:before": "build"
},
"dependencies": {
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/compiler-cli": "0.6.2",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/platform-server": "2.0.0",
"@ionic/storage": "1.1.6",
"ionic-angular": "2.0.0-rc.1",
"ionic-native": "2.2.3",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.21"
},
"devDependencies": {
"@ionic/app-scripts": "0.0.36",
"typescript": "2.0.3"
},
"description": "app4: An Ionic project",
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": []
} |
Can you provide us a sample repository recreating the issue? Thanks, |
Same problem for me |
[13:18:08] ionic-app-scripts 0.0.38 npm ERR! Windows_NT 6.1.7601 |
@danbucholtz Do you want the code that is causing the issue? It's the "standard" code when you create a new app using: But here you go: (Note: Just removed "node_modules" folder because it had more than 100MB!!! What?) |
@macdasi Your eror seems different.... and I've also noticed |
@danbucholtz Now you have the
|
When I run
That is the expected output. Are you not seeing that? I did update Thanks, |
I didn't have the exact error as @rodrigograca31, but I was getting weird build errors as well (on 0.0.36). Updating to 0.0.38 fixed the issues for me 👍 |
Ok it's the darndest thing, but on 0.0.38 the build errors go away, but what used to be the build error shows up on the console on app start. Pasting the error here just to show how ridiculous it is This is was very similar to the build error I was getting on 0.0.36. During development I use If I remove the The console error is only seen if I include @danbucholtz Any thoughts? EDIT: I take that back. Sort of. The error turned out to be because there was a typo in my import statement for I still don't get how the |
@danbucholtz I get this when I run that command: (
I will update to |
Upgrading to |
@rodrigograca31, can you blow away Thanks, |
@danbucholtz I've created another test app and the same happens: ionic start app7 --v2
cd app7/
rm -rf node_modules/
nano package.json
npm install
ionic run android Error output:
{
"name": "ionic-hello-world",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"build": "ionic-app-scripts build",
"watch": "ionic-app-scripts watch",
"serve:before": "watch",
"emulate:before": "build",
"deploy:before": "build",
"build:before": "build",
"run:before": "build"
},
"dependencies": {
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/compiler-cli": "0.6.2",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/platform-server": "2.0.0",
"@ionic/storage": "1.1.6",
"ionic-angular": "2.0.0-rc.1",
"ionic-native": "2.2.3",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.21"
},
"devDependencies": {
"@ionic/app-scripts": "0.0.38",
"typescript": "2.0.6"
},
"description": "app7: An Ionic project",
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": []
} Keep in mind that this is a brand new app... (created with: |
What version of Thanks, |
@jthoms1 posted my original
|
We don't support that version of Node.js anymore. Please update to the latest LTS release. I think that will resolve your issues. Thanks, |
Ok.... It's solved. I've used the following commands:
🎉 🎉 🎉 @danbucholtz Thanks! Have some: 🍰 |
Now |
@rodrigograca31, glad to hear it! Have a good day and happy hacking! Thanks, |
Hi Dan,
It seems like some kind of code error, but they not only do not make any sense, there isn't much information on where exactly that problem is, since Any help would be awesome. |
My Ionic info is:
|
Hi, These were indeed code issues. It was just confusing to suddenly have such a strict type checking that wasn't there before, as well as the fact that the build result is inconsistent with the ionic serve result, which just works. Maybe the ionic serve result can be adjusted in the future to behave similarly, so one may not be bitten later on. |
I updated node to the latest version and then I got the following message:
So, I created a main.ts file. I made a CTRL C CTRL V from main.dev.ts to main.ts and that's it :) |
From @rodrigograca31 on October 18, 2016 20:33
Short description of the problem:
Error creating new app. (--v2)
What behavior are you expecting?
It should "compile" and run the app....
Steps to reproduce:
Post the output of
ionic info
below pleaseCopied from original issue: ionic-team/ionic-cli#1562
The text was updated successfully, but these errors were encountered: