question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use movePluginBeforeInitAuthPlugin when server-side framework is Koa

See original GitHub issue

Version

@nuxtjs/firebase: ^5.0.7 firebase: ^7.14.1 nuxt: 2.12.2

Steps to reproduce

  1. create-nuxt-app and server-side framework use Koa
  2. npm i firebase @nuxtjs/firebase --save
  3. 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: Koa 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found