ckolobov opened a new issue #276:
URL: https://github.com/apache/cordova/issues/276


   # Bug Report
   
   ## Problem
   I use Node 11.10.1 and Cordova 9.0.0
   
   When I run
   ```
   cordova platform add [email protected]
   ```
   the result is:
   ```
   Adding ios project...
   Creating Cordova project for the iOS platform:
        Path: platforms/ios
        Package: io.cordova.hellocordova
        Name: HelloCordova
   iOS project created with [email protected]
   globalThis is not defined
   (node:88875) ExperimentalWarning: queueMicrotask() is experimental.
   ```
   
   And after
   ```
   cordova run ios
   ```
   the result is:
   ```
   globalThis is not defined
   (node:1185) ExperimentalWarning: queueMicrotask() is experimental.
   ```
   
   ### What is expected to happen?
   successful run 
   
   
   ### What does actually happen?
   ```
   globalThis is not defined
   ```
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   The problem is reproduced only with Node 11
   I found module [email protected] that has issue with node v11: 
https://github.com/feross/queue-microtask/issues/17
   
   Dependencies from [email protected] to [email protected]
   [email protected]
   [email protected]
   [email protected]
   @nodelib/[email protected]
   @nodelib/[email protected]
   [email protected]
   [email protected]
   
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   ```
   npm install -g [email protected]
   ```
   Then in your app:
   ```
   cordova platform add [email protected]
   cordova run ios
   ```
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   MacBook
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   node -v //11.10.1
   cordova -v //9.0.0
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to