TypeError: out.writeUint32LE is not a function Error During Gulp Command

Scenario

When we try to run local, error as shown below will show in our terminal. 
TypeError: out.writeUint32LE is not a function

Solution

To correct this error, complete the following steps before running gulp commands:

In the root directory of SCA using the command prompt window, go to
./node_modules/xml2js

  1. Open the package.json file.
  2. In the “dependencies” section, find the following code:
    “xmlbuilder”: “>=1.0.0”
  3. And replace it with the following code:
    “xmlbuilder”: “11.0.0”
  4. Run the following command inside the xml2js folder:
    npm install
  5. In the root directory of SCA using the command prompt window, go to
    ./node_modules/gulp-ttf2eot
  6. Open the package.json file.
  7. In the “dependencies” section, find the following code:
    “ttf2eot”: “latest”
  8. And replace it with the following code:
    “ttf2eot”: “2.0.0”
  9. Run the following command inside the gulp-ttf2eot folder:
    npm install
  10. In the root directory of SCA using the command prompt window, go to
    ./node_modules/gulp-ttf2woff
  11. Open the package.json file.
  12. In the “dependencies” section, find the following code:
    “ttf2woff”: “latest”
  13. And replace it with the following code:
    “ttf2woff”: “2.0.2”
  14. Run the following command inside the ttf2woff folder:
    npm install

Leave a comment

Your email address will not be published. Required fields are marked *