我正在尝试在CircleCI上构建一个React应用程序,最近一直没有出现任何问题。但是,每当我尝试从我的circle.yml运行
我尝试添加 / 重新添加 dotenv-expand 依赖项以及我在 CircleCI 中使用的任何环境变量,但没有成功。有什么建议吗?谢谢。
npm run build
时,就会出现以下错误: #!/bin/bash -eo pipefail
npm run build
> jobcatcher-web@0.0.1 build /home/circleci/repo
> react-scripts build
/home/circleci/repo/node_modules/dotenv-expand/lib/main.js:8
var key = match.replace(/\$|{|}/g, '')
^
RangeError: Maximum call stack size exceeded
at String.replace (<anonymous>)
at /home/circleci/repo/node_modules/dotenv-expand/lib/main.js:8:23
at Array.forEach (<anonymous>)
at interpolate (/home/circleci/repo/node_modules/dotenv-expand/lib/main.js:7:13)
at /home/circleci/repo/node_modules/dotenv-expand/lib/main.js:14:18
at Array.forEach (<anonymous>)
at interpolate (/home/circleci/repo/node_modules/dotenv-expand/lib/main.js:7:13)
at /home/circleci/repo/node_modules/dotenv-expand/lib/main.js:14:18
at Array.forEach (<anonymous>)
at interpolate (/home/circleci/repo/node_modules/dotenv-expand/lib/main.js:7:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jobcatcher-web@0.0.1 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jobcatcher-web@0.0.1 build 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/circleci/.npm/_logs/2018-03-14T20_57_45_719Z-debug.log
Exited with code 1
我尝试添加 / 重新添加 dotenv-expand 依赖项以及我在 CircleCI 中使用的任何环境变量,但没有成功。有什么建议吗?谢谢。