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
- Open the package.json file.
- In the “dependencies” section, find the following code:
“xmlbuilder”: “>=1.0.0” - And replace it with the following code:
“xmlbuilder”: “11.0.0” - Run the following command inside the xml2js folder:
npm install - In the root directory of SCA using the command prompt window, go to
./node_modules/gulp-ttf2eot - Open the package.json file.
- In the “dependencies” section, find the following code:
“ttf2eot”: “latest” - And replace it with the following code:
“ttf2eot”: “2.0.0” - Run the following command inside the gulp-ttf2eot folder:
npm install - In the root directory of SCA using the command prompt window, go to
./node_modules/gulp-ttf2woff - Open the package.json file.
- In the “dependencies” section, find the following code:
“ttf2woff”: “latest” - And replace it with the following code:
“ttf2woff”: “2.0.2” - Run the following command inside the ttf2woff folder:
npm install