В своем приложении React я установил все свои переменные и могу получить их правильно с помощью
firebase functions:config:get
Как только я импортирую функции firebase в свой код, я получаю ошибку
ERROR in ./node_modules/firebase-functions/lib/apps.js
Module not found: Error: Can't resolve 'firebase-admin' in '/Users/pathtomyproject/node_modules/firebase-functions/lib'
@ ./node_modules/firebase-functions/lib/apps.js 24:17-42
@ ./node_modules/firebase-functions/lib/index.js
@ ./environment/variables.js
@ ./src/components/login/LoginForm.js
@ ./src/components/login.js
@ ./src/routers/AppRouter.js
@ ./src/app.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./src/app.js
ERROR in ./node_modules/firebase-functions/lib/providers/firestore.js
Module not found: Error: Can't resolve 'firebase-admin' in '/Users/pathtomyproject/node_modules/firebase-functions/lib/providers'
@ ./node_modules/firebase-functions/lib/providers/firestore.js 24:17-42
@ ./node_modules/firebase-functions/lib/index.js
@ ./environment/variables.js
@ ./src/components/login/LoginForm.js
@ ./src/components/login.js
@ ./src/routers/AppRouter.js
@ ./src/app.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./src/app.js
ERROR in bundle.js from UglifyJs
Unexpected token: name (Change) [./node_modules/firebase-functions/lib/cloud-functions.js:35,0][bundle.js:128825,6]
Кто-нибудь еще испытывал это или знает, как это обойти? Заранее спасибо