massoudmaboudi / docusaurus-auth-firebase Goto Github PK
View Code? Open in Web Editor NEWA codebase to show how to add authentication to Docusaurus using Google Firebase
A codebase to show how to add authentication to Docusaurus using Google Firebase
I am getting the following errors. Most likely this is a user error and not a bug - just need some guidance on tracking down where the issue(s) are. Errors 1 & 2 are cropping up in localhost. I am able to deploy the repo fine to Vercel but the domain returns an error (number 3 below)
Error 1:
firebase_compat_app__WEBPACK_IMPORTED_MODULE_1__.default.auth is not a function
TypeError: firebase_compat_app__WEBPACK_IMPORTED_MODULE_1__.default.auth is not a function
at eval (webpack-internal:///./src/utils/utils.js:10:281)
at invokePassiveEffectCreate (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:23482:20)
at HTMLUnknownElement.callCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at Object.invokeGuardedCallbackDev (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:3994:16)
at invokeGuardedCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:4056:31)
at flushPassiveEffectsImpl (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:23569:9)
at unstable_runWithPriority (webpack-internal:///./node_modules/scheduler/cjs/scheduler.development.js:468:12)
at runWithPriority$1 (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:11276:10)
at flushPassiveEffects (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:23442:14)
at eval (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:23319:11)
Error 2
Unexpected: no Docusaurus route context found
at useRouteContext (webpack-internal:///./node_modules/@docusaurus/core/lib/client/exports/useRouteContext.js:12:162)
at PluginHtmlClassNameProvider (webpack-internal:///./node_modules/@docusaurus/theme-common/lib/utils/metadataUtils.js:30:143)
at renderWithHooks (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:14985:18)
at mountIndeterminateComponent (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:17811:13)
at beginWork (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:19049:16)
at HTMLUnknownElement.callCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at Object.invokeGuardedCallbackDev (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:3994:16)
at invokeGuardedCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:4056:31)
at beginWork$1 (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:23959:7)
at performUnitOfWork (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:22774:12)
Error 3
I am able to deploy the repo to Vercel and it builds fine. However, when I visit the Vercel assigned domain I get this error message:
This page crashed
Try again
fn.auth is not a function
ReferenceError: window is not defined
[ERROR] Unable to build website for locale en.
[ERROR] Error: Failed to compile with errors.
at D:\REACT-DEV\....\node_modules\@docusaurus\core\lib\webpack\utils.js:180:24
at D:\REACT-DEV\....\node_modules\webpack\lib\MultiCompiler.js:554:14
at processQueueWorker (D:\REACT-DEV\....\node_modules\webpack\lib\MultiCompiler.js:491:6)
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
after follow your tutorial, i have facing this problem, when i create some file in theme folder.
any clue?
any update here?
src/components/Loading/index.js line 2 imports PropTypes from "prop-types" but it's never read.
On line 19 you have Loading.propTypes = {};
; there's a case difference (propTypes vs. PropTypes), but changing it doesn't resolve the error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.