Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(utils) always initialize scripts array #188

Merged
merged 1 commit into from
Jan 8, 2020

Conversation

dirkgroenen
Copy link
Contributor

@dirkgroenen dirkgroenen commented Jan 8, 2020

In our project we were experiencing issues of a missing cordova.js file after upgrading to Angular 8. After some searching around it seems like we were having the same issue as mentioned in #179 .

Thing is: we were already using the latest version of angular-toolkit, which included the fix 0aeec97 .

It seems like the fix only initializes the scripts array with an empty array when consolelogs is used. In our project it isn't, which causes the scripts array to remain null and thus preventing the cordova.js from being injected.

  • Moving the check/initializer outside the consolelogs statement resolves the issue of a missing cordova.js.

@mhartington
Copy link
Contributor

Looks good! Thanks for the PR

@mhartington mhartington merged commit 81c385e into ionic-team:master Jan 8, 2020
Ionitron added a commit that referenced this pull request Jan 13, 2020
## [2.1.2](v2.1.1...v2.1.2) (2020-01-13)

### Bug Fixes

* **cordova:** add cordova.js to index.html even without scripts array ([c8bb37b](c8bb37b)), closes [#188](#188)
@Ionitron
Copy link
Collaborator

🎉 This issue has been resolved in version 2.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

wand1252 added a commit to wand1252/angular-toolkit-develop that referenced this pull request Aug 31, 2022
## [2.1.2](ionic-team/angular-toolkit@v2.1.1...v2.1.2) (2020-01-13)

### Bug Fixes

* **cordova:** add cordova.js to index.html even without scripts array ([c8bb37b](ionic-team/angular-toolkit@c8bb37b)), closes [#188](ionic-team/angular-toolkit#188)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants