# Errof happen when running "gulp dist "

**URL:** <https://mediasoup.discourse.group/t/errof-happen-when-running-gulp-dist/2794>\
**Category:** mediasoup-demo\
**Created:** [May 16, 2021, 3:22am UTC](https://mediasoup.discourse.group/t/errof-happen-when-running-gulp-dist/2794 "2021-05-16T03:22:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YaxiongXie](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/yaxiongxie/32/1070_2.png) [@YaxiongXie](https://mediasoup.discourse.group/u/YaxiongXie)\
**Post date:** [May 16, 2021, 3:22am UTC](https://mediasoup.discourse.group/t/errof-happen-when-running-gulp-dist/2794/1 "2021-05-16T03:22:01Z")

</div>

Hi All,

I met one problem when running “gulp dist” under the folder app:  
/home/paws/mediasoup/mediasoup-demo/app/gulpfile.js  
58:21 error Unexpected use of file extension “json” for “./package.json” import/extensions

✖ 1 problem (1 error, 0 warnings)

Any idea what’s the problem here?

-Best  
Yaxiong

---

<div class="post-metadata">

**Author:** ![cengiz7](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/cengiz7/32/1697_2.png) [@cengiz7](https://mediasoup.discourse.group/u/cengiz7)\
**Post date:** [August 15, 2022, 8:31pm UTC](https://mediasoup.discourse.group/t/errof-happen-when-running-gulp-dist/2794/2 "2022-08-15T20:31:59Z")

</div>

It is explanined here. I guess this problem only exists in development environment.  
[https://stackoverflow.com/a/29596396/8313043](https://stackoverflow.com/a/29596396/8313043)

```auto
Replace line 58 with this
// const PKG = require('./package.json');
const PKG = JSON.parse(fs.readFileSync('./package.json'));

```
