Closed dubisdev closed 2 years ago
Describe the bug I'm getting an error after updating NextJS version:
error - ./node_modules/next-firebase-auth/build/index.browser.js:1:1496 Module not found: Can't resolve '@babel/runtime/helpers/objectWithoutProperties' Import trace for requested module: ./services/initAuth.js ./pages/_app.js
Versions
next-firebase-auth version: 1.0.0-canary.4 Firebase JS SDK:
next-firebase-auth
Next.js: 12.0.8-canary.13 (updated from 12.0.7)
To Reproduce Steps to reproduce the behavior:
Expected behavior Should work, but fails.
Additional context It seems NextJS is pre-compiling its dependencies and now @babel/runtime has been precompiled so it is not available and must be set as dependency in your package. https://babeljs.io/docs/en/babel-plugin-transform-runtime
Temporary fix Install the package as a dependency in the webpage project: yarn add @babel/runtime or npm i @babel/runtime (then it works).
yarn add @babel/runtime
npm i @babel/runtime
Thank you very much for this great package, it is really useful 📈🚀
Fixed in #501.
Describe the bug I'm getting an error after updating NextJS version:
Versions
next-firebase-auth
version: 1.0.0-canary.4 Firebase JS SDK:Next.js: 12.0.8-canary.13 (updated from 12.0.7)
To Reproduce Steps to reproduce the behavior:
Expected behavior Should work, but fails.
Additional context It seems NextJS is pre-compiling its dependencies and now @babel/runtime has been precompiled so it is not available and must be set as dependency in your package. https://babeljs.io/docs/en/babel-plugin-transform-runtime
Temporary fix Install the package as a dependency in the webpage project:
yarn add @babel/runtime
ornpm i @babel/runtime
(then it works).Thank you very much for this great package, it is really useful 📈🚀