Been trying to use React App on Ruby on Rails... I've added with rails new app-name --webpack=react... it was working fine until I wanted to use the react-firebase-hooks-auth.
Throw this error on console:
Uncaught Error: Cannot find module 'react-firebase-hooks-auth'
at webpackMissingModule (bootstrap:83:1)
at Module../app/javascript/components/App.jsx (bootstrap:83:1)
at __webpack_require__ (bootstrap:19:1)
at Module../app/javascript/packs/index.js (App.jsx:77:1)
at __webpack_require__ (bootstrap:19:1)
at bootstrap:83:1
at bootstrap:83:1
this is my App.js
import React from "react";
import firebase from 'firebase/app';
import 'firebase/firestore';
import 'firebase/auth';
import { useAuthState } from 'react-firebase-hooks-auth';
import { useCollectionData } from 'react-firebase-hooks/firestore';
Can anyone help?
did you try react-firebase-hooks/auth ?
https://github.com/CSFrequency/react-firebase-hooks/tree/master/auth