Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during build: registerVersion is not a function #260

Open
HaimBendanan opened this issue May 30, 2020 · 2 comments
Open

Error during build: registerVersion is not a function #260

HaimBendanan opened this issue May 30, 2020 · 2 comments

Comments

@HaimBendanan
Copy link

Hey!

I added this theme in my project and everything works well when running gatsby develop.
But when running gatsby build, I get the following error:

WebpackError: TypeError: _firebase_app__WEBPACK_IMPORTED_MODULE_0___default.a.registerVersion is not a function

 index.esm.js:23 Module../node_modules/firebase/app/dist/index.esm.js
   node_modules/firebase/app/dist/index.esm.js:23:9

 index.ts:1 Module../node_modules/gatsby-theme-firebase/src/firebase/index.ts
   node_modules/gatsby-theme-firebase/src/firebase/index.ts:1:1

 Form.tsx:1 Module../node_modules/gatsby-theme-firebase/src/components/Form.tsx
   node_modules/gatsby-theme-firebase/src/components/Form.tsx:1:1

 login.tsx:1 Module../node_modules/gatsby-theme-firebase/src/pages/login.tsx
   node_modules/gatsby-theme-firebase/src/pages/login.tsx:1:1

Tried to npm install @firebase/app as suggested here: firebase/firebase-tools#1989 but it didn't helped.

Do you have any idea what is going wrong?

@epilande
Copy link
Owner

@HaimBendanan what firebase and gatsby version are you running?

@HaimBendanan
Copy link
Author

@epilande here it is:
Firebase: 7.14.13
Gatsby: 2.21.21
Gatsby-theme-firebase: 1.0.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants