-
Notifications
You must be signed in to change notification settings - Fork 311
[0.0.39] Build fails with "TypeError: Cannot read property 'indexOf' of undefined" #305
Comments
I have the same issue. A quick fix is to delete all the files in your www folder. But you will have to do this every time you build. |
That's what my colleagues are also saying. But in my case, I deleted my node modules, .tmp and the www folders, did a fresh |
Do you have any idea why |
The reason for this is that we've overridden the default copy config from ionic, to include extra data, and we added the console output to make sure it does get used:
|
Hmmm... Now that you've brought my attention to this, I did some investigations. Firstly, I went to line 120 of Boom! Now it works. But I think I might create a pull request to fix the null-pointer... :) Thanks for pointing me to the right direction! |
Not sure if I should keep this issue open... |
Glad to hear you resolved the issue. Please do pull request it so I can use it. 👍 |
Hello @hayuki , thanks for all the debugging and thanks for the PR! We will take a look at it. |
Hello again! Since we merged the PR to fix this issue I am now going to close this bug. Thanks alot! |
Thanks @jgw96 ! |
Short description of the problem:
Ever since updating to app-scripts 0.0.39 I get a
TypeError: Cannot read property 'indexOf' of undefined
when trying to build the project. Sometimes re-installing the latest app-scripts would "fix" the issue, but today nothing I do seems to resolve it, so I cannot build and run the app at all. I even deleted my node_modules folder and re-installed everything again - still the same issue.What behavior are you expecting?
I'm expecting to be able to build and run the project with no problems.
Steps to reproduce:
Just a note - it seems to be random, sometimes it would work and sometimes not. Lately it's mostly the latter.
ionic build
orionic run android
Which @ionic/app-scripts version are you using?
latest - 0.0.39
Dev environment info:
Cordova CLI: 6.2.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.39
OS:
Node Version: v6.7.0
Any help would be really appreciated!
The text was updated successfully, but these errors were encountered: