firecmsco / firecms

Awesome Firebase/Firestore-based CMS. The missing admin panel for your Firebase project!
https://firecms.co
Other
1.15k stars 183 forks source link

NextJS Issue. #74

Closed choguun closed 2 years ago

choguun commented 3 years ago

Hi

I got a problem when using it in NextJS project. I showed a message below.

./node_modules/typeface-space-mono/index.css Global CSS cannot be imported from within node_modules. Read more: https://err.sh/next.js/css-npm Location: node_modules\@camberi\firecms\dist\index.modern.js

How to fix this.

Thanks

fgatti675 commented 3 years ago

Hi @choguun Can you try with version 0.37.0? I have removed that import

choguun commented 3 years ago

same problem in version 0.37.0

choguun commented 3 years ago

same problem in version 0.39.0 Do you have any updates?

fgatti675 commented 3 years ago

Hi @choguun Unfortunately FireCMS depends on FirebaseUI which does not support SSR and there is no easy solution unless we replace that library all together, it would mean reimplementing all the login flow on our own. It is not likely to happen. There are people already asking for SSR support for FirebaseUI so maybe you can try there!

fgatti675 commented 1 year ago

For anyone landing here, FireCMS can now be used with next.js, just by disabling SSR.

const Admin = dynamic(() => import("../your_firecms_app"), { ssr: false });