-
Notifications
You must be signed in to change notification settings - Fork 311
[0.0.42] build dev failed #340
Comments
Hmm... Removing node_modules and doing a fresh Still says |
After updating to app-scripts 0.0.42 I also have build failed with ionic-serve, in my case: NOT fixed in my case by removing node_modules and doing a fresh npm install.
[22:29:11] ionic-app-scripts 0.0.42 ionic info Your system information: Cordova CLI: 6.3.1 |
Hey @biesbjerg and @devnigelwheeler ! Thanks for posting an issue! Could you all post a repo that we can use to reproduce this issue? |
@devnigelwheeler: Your issue is caused by #326 since you're on Linux (I'm on MacOS) |
Are you able to recreate or was it just a one-time thing after you did the fresh Thanks, |
@danbucholtz Build works after fresh The output |
It affects the build. "ionic serve --browser chrome" doesn't get passed to ionic-app-scripts. |
This will go out today as part of Thanks, |
This is resolved. Please install Thanks, |
Happens on There is an issue for this error at #361 |
Happens on 0.0.45 as well. I get [12:29:41] ionic-app-scripts 0.0.45 I have Your system information: Cordova CLI: 6.4.0 |
I have same issue as @ix-xerri [12:20:44] ionic-app-scripts 0.0.45 Your system information: Cordova CLI: 6.3.1 |
Just to share some insight. Look like this error is triggered b/c I have angularFire2 beta 0.6 installed. If I go back to angularFire2 beta 0.5, the error goes away. But I need angularFire2 beta 0.6 as there is major bug fixes in that version. I believe I have 0.6 before App Script update (from 0.0.36 to 0.0.45). No idea what is going wrong. |
What is the issue that you're seeing? Are you able to run Please let me know how it goes and if there is an issue here. Thanks, |
ionic serve with blank page as the error mess up something. |
@danbucholtz Sorry, just update to RC3 and angularFire beta 0.6, and the problem go away. |
I updated ionic to RC3 and still get this error when doing ionic serve. [04:47:01] ionic-app-scripts 0.0.44 This is my ionic info Cordova CLI: 6.4.0 |
Have you customized the build at all? Is there anything unique about your set-up? I cannot recreate that. Thanks, |
No. I've setup pages and providers for the tabs template in ionic. But the build system has not been changed. |
This is the line that breaks everything inside module : If I console.log AngularFireModule all I get is: |
i am having the same issue here |
Same happening here, although I don't have AngularFire. I haven't modified the build in any form either.
|
I just tried using the firebase library alone and it works. Can write to a database no problem and there are no errors. |
I started seeing "build dev failed: Cannot read property 'indexOf' of undefined" after I ran these lines: npm install typings --global Before that I only had this error and ionic serve loaded just fine: Failed to load resource: the server responded with a status of 404 (Not Found) |
We don't recommend using Thanks, |
What issue are you seeing? Can you see if you see the same issue with Node 6? We test on Node 4.x LTS and Node 6.x LTS. Thanks, |
Not sure I've never seen it. In my case the build did not complete. |
I am seeing this same issue. I do not have any modifications to the build setup. The biggest issue for me here, is that I don't know where to start digging. With the "hidden from the devloper" approach to the build config, things like this take way longer to debug. output from ionic info: Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.1
Xcode version: Not installed Packag JSON: {
"name": "armadilo",
"description": "armadilo: An Ionic project",
"version": "1.0.3",
"private": true,
"scripts": {
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve --watch",
"package": "ionic build ios",
"package-test": "ENV=TEST && ionic build ios",
"package-prod": "ENV=PROD && ionic build ios",
"safe-install": "set http_proxy=http://OURPROXY:OURPORT && npm install",
"start": "ionic serve --browser chrome --platform ios",
"startlab": "ionic serve --browser chrome --lab",
"test": "./node_modules/.bin/karma start"
},
"dependencies": {
"@angular/common": "2.1.1",
"@angular/compiler": "2.1.1",
"@angular/compiler-cli": "2.1.1",
"@angular/core": "2.1.1",
"@angular/forms": "2.1.1",
"@angular/http": "2.1.1",
"@angular/platform-browser": "2.1.1",
"@angular/platform-browser-dynamic": "2.1.1",
"@angular/platform-server": "2.1.1",
"@ionic/storage": "1.1.6",
"@lge/ng2-cc": "^1.1.0",
"angular2-busy": "1.0.2",
"ionic-angular": "2.0.0-rc.3",
"ionic-native": "2.2.3",
"ionicons": "3.0.0",
"lodash": "^4.13.1",
"moment": "^2.13.0",
"openlayers": "3.18.2",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.26"
},
"devDependencies": {
"@types/core-js": "^0.9.34",
"@types/openlayers":"3.18.40",
"@types/lodash":"4.14.41",
"@types/moment":"2.13.0",
"@ionic/app-scripts": "0.0.45",
"typescript": "2.0.6"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [
"ios"
]
} ionic serve output: > ionic-app-scripts serve --watch
[12:26:48] ionic-app-scripts 0.0.45
[12:26:49] watch started ...
[12:26:49] build dev started ...
[12:26:49] clean started ...
[12:26:49] clean finished in 9 ms
[12:26:49] copy started ...
[12:26:49] transpile started ...
[12:27:04] build dev failed: Cannot read property 'indexOf' of undefined
Config file "D:\git-repos\armadilo-upgrade\--" not found. Using defaults instead.
[12:27:04] copy finished in 14.86 s
[12:27:04] watch ready in 15.00 s
[12:27:04] dev server running: http://localhost:8100/ |
@Barryrowe I had the same error . I solved it by removing everything related to types firebase in tsconfig.json. nothing is required. Dont install Remove node modules completely. Re-install by npm install.
dev `"@ionic/app-scripts": "^0.0.45" EDIT :- only update to app-scripts 45 helped me. firebase was specific to my project. |
@uzumakinaruto123 Thanks, but I'm already on app-scripts 0.0.45, and I'm not using firebase :/. |
@danbucholtz @Barryrowe - the same error here : Failed to load resource: net::ERR_ADDRESS_INVALID from chrome in console and got white screen nothing load.... What can I do? |
There's a lot more info at #468 |
I'm also seeing: build dev failed: Cannot read property 'indexOf' of undefined This only occurs for me when first running ionic serve. If I just edit one of my .ts files, it triggers a rebuild, and it builds fine after that. |
the same issues and nothing appear on the screen! |
It seems like the Thanks, |
Same issue here, application has been working lately. But for some reason I decided to re-install everything.
I have a strange feeling this has to do with node 6.9.1 |
If you take a look at this comment on #468 (comment) you can see where we tracked this down to there being typescript errors that may exist, but somehow the logger isn't getting the expect input from the error reporter, and leads to an undefined reference. In my case, I was able to patch a handful of files to get on to my next issue, but it's likely there are legitimate errors/warnings being eaten by that process. Appears from above @danbucholtz is looking into it. All that being said, I have not seen this any further after resolving the remainder of my typescript errors and doing a full clean and npm install. |
Something new? |
@danbucholtz Problem is still here in 0.47 |
Can someone provide a concrete reproduction? I have still been unable to recreate. Thanks, |
I was having this problem with 0.0.45, 0.0.46, and 0.0.47. I tried all 3, and was still getting the error. I found the error was trying to use both AngularFire2 and firebase.js in the same page.js file. I had to break out my usage of firebase to a separate page (or you can possibly use a provider) to use firebase.js and return the value to the promise that needs the return value. I ended up using a Modal, and then using the dismiss method from the ViewController. Call Modal:
From Modal (make sure you include ViewController in the constructor): |
Try this on a ionic 2 angularfire project with ionic-app-scripts 0.0.45 (ionic-angular: 2.0.0-rc.3):
ionic serve
import * as firebase from 'firebase';
build dev failed: Cannot read property 'indexOf' of undefined
|
Hi guys, I've the same issue after create a project with this command ionic start myPojectName blank --v2 This's my ionic info Cordova CLI: 6.4.0 ionic serve output [19:46:50] ionic-app-scripts 0.0.47 [19:46:57] copy finished in 6.39 s |
Hi Daniel |
npm install firebase angularfire2 --save = > NO My project goes this way without making any mistakes on the console. I hope I have helped. |
Hi, I've started to get this issue on windows 10. I've removed node_modules and ran npm cache clean. I've also checked there is no instance of firebase. I've started a new ionic 2 project based on the tabs template ran npm install and ionic serve and the following is returned:
[08:36:29] ionic-app-scripts 0.0.47 [08:36:54] copy finished in 20.63 s If I then edit the main.ts and save the project auto rebuilds and loads fine. If I stop and serve again I get same error and need to edit a file again. ionic info as follows: ordova CLI: 6.4.0 Has anyone any thoughts on how to resolve this? |
Update: |
That worked for me. Thank you!
…On Wed, Dec 21, 2016 at 7:52 AM, Nilton Felicio ***@***.***> wrote:
Update:
ionic-app-scripts 0.0.47
To:
ionic-app-scripts 0.0.48
npm update @***@***.*** --save-dev
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#340 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APxEZWKWR2RpqEs6z2bCIuABhhVnVAOVks5rKUslgaJpZM4KuBS8>
.
|
@NiltonFelicio , thanks for the help and Sorry for the delay, After clearing everything out when I run the npm update @ionic/app-scripts@latest --save-dev command I still get version 0.0.47. However after clearing this all out and starting from a tabs template it is finally building again without errors. Thanks Mike |
same issue here: Project works fine with ionic 2.0.0-rc.3, Also, I tried fresh npm installation still same error occurs. Error: build dev failed: Cannot set property 'fileSystem' of null
Ionic info:
|
@Tusharbalar Try to update ionic-app-scripts to version 1.0.0 (see devDependencies in package.json). It worked for me. edit: Have a look at the upgrade instructions for 1.0.0 https://github.com/driftyco/ionic-app-scripts/blob/master/CHANGELOG.md You need to add sw-toolbox
|
Thanks @MartinMa, after updating to version 1.0.0 I got a new error
|
@MartinMa, Thank you 👍 Updating ionic-app-scripts to version 1.0.0 worked for me. |
Thanks, @MartinMa It works for me. |
For me the output when running has an error saying:
Build does not fail when I do:
But it does when I do:
I am on 0.0.45, how do I update to 1.0.0? |
This solved it for me:
|
Short description of the problem:
ionic serve
fails:Steps to reproduce:
ionic serve
Which @ionic/app-scripts version are you using?
0.0.42
ionic info
:Complete
package.json
:EDIT: Ping @danbucholtz ;-)
The text was updated successfully, but these errors were encountered: