Can't use movePluginBeforeInitAuthPlugin when server-side framework is Koa
See original GitHub issueVersion
@nuxtjs/firebase: ^5.0.7 firebase: ^7.14.1 nuxt: 2.12.2
Steps to reproduce
create-nuxt-app
and server-side framework useKoa
npm i firebase @nuxtjs/firebase --save
- follow https://firebase.nuxtjs.org/guide/helpers/#movepluginbeforeinitauthplugin
What is Expected?
Support Koa
to use movePluginBeforeInitAuthPlugin
.
What is actually happening?
When I add import { movePluginBeforeInitAuthPlugin } from '@nuxtjs/firebase/lib/helpers'
in my nuxt.config.js
and run npm run dev
, npm will throw an error:
Later I found the reason maybe is
Koa
does not suppert ES6's module system (import/export)
.
From the source code, It is now only supported ES6's module system (import/export)
.
So I think maybe support CommonJS
is a good way to support Koa
?or there are other better ways ?
Thank you for helping 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Chapter 5. Server-side frameworks - Node.js in Action ...
The perfect framework for a given project is dependent on the needs of the project and the team working on it. In this...
Read more >Comparison Of Four Popular Node.js Frameworks - Toptal
Node.js, the event-driven server-side JavaScript environment, ... To be more specific, in this article we will take a look at Express, Koa, Meteor...
Read more >Server-side web frameworks - Learn web development | MDN
Web frameworks provide tools and libraries to simplify common web development operations. You don't have to use a server-side web framework, ...
Read more >Hands-On Server-Side Web Development with Koa.js [Video]
This course is for JavaScript developers who are currently working on the Node.js or Express frameworks and are keen to use the minimalistic...
Read more >Choosing the right Node.js Framework: Express, Koa, or Hapi?
Node.js is an open-source and cross-platform JavaScript runtime environment designed for building scalable server-side network applications, and it's a popular ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Should be fixed with v5.2.0
https://github.com/nuxt-community/firebase-module/commit/806ecce0a3b85478ef71a383e6a64c018c1b76e2