asolopovas
8 months ago
1823
3
Mix

RangeError: Maximum call stack size exceeded, npm run dev

Posted 8 months ago by asolopovas

Hi, I am getting an error when I run npm run dev:

npm run dev    
 
> @ dev /var/www/api
> npm run development


> @ development /var/www/api
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

/var/www/api/node_modules/webpack-cli/bin/cli.js:93
                                throw err;
                                ^

RangeError: Maximum call stack size exceeded
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:11:22
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
    at /var/www/api/node_modules/dotenv-expand/lib/main.js:14:18
    at Array.forEach (<anonymous>)
    at interpolate (/var/www/api/node_modules/dotenv-expand/lib/main.js:7:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/www-data/.npm/_logs/2020-02-26T18_43_56_383Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/www-data/.npm/_logs/2020-02-26T18_43_56_399Z-debug.log

The error seems to be happening because I use dorcker and use env variables to in my .env file such as APP_URL=${APP_URL}, php detects env variables but when it comes to run node dotenv-expand seems to have a problem with such .env file, does anyone knows how to go around this problem?

Please sign in or create an account to participate in this conversation.