Coder Social home page Coder Social logo

No plugin export in ESM about fastify-auth HOT 6 CLOSED

fastify avatar fastify commented on May 31, 2024
No plugin export in ESM

from fastify-auth.

Comments (6)

Uzlopak avatar Uzlopak commented on May 31, 2024

Please provide a repo, which can be cloned and investigated.

from fastify-auth.

selfagency avatar selfagency commented on May 31, 2024

i realized i missed after() so now the second half of the ticket is irrelevant and deleted

from fastify-auth.

Uzlopak avatar Uzlopak commented on May 31, 2024

It is not reproducable, if you dont provide a repository as mvce, as we actually tested this see fastify/fastify#4349

So please provide a repository to investigate it further.

from fastify-auth.

Eomm avatar Eomm commented on May 31, 2024

Is v4.2.0 solving this issue?

from fastify-auth.

Uzlopak avatar Uzlopak commented on May 31, 2024

@Eomm
He explicitly claims that 4.2.0 has the issue. And to be honest i dont understand the issue. It should work out of the box.
We need the mvce.

from fastify-auth.

climba03003 avatar climba03003 commented on May 31, 2024

I am closing this issue because the author do not provide a clear step to reproduce the problem.

import * as starImport from '@fastify/auth'
import defaultImport, { fastifyAuth as namedImport } from '@fastify/auth'
console.log(defaultImport) // Function: fastifyAuth
console.log(namedImport) // Function: fastifyAuth
console.log(starImport) // Module: { default: [Function: fastifyAuth], fastifyAuth: [Function: fastifyAuth] }

My advice would be double check the version you install using npm list @fastify/auth.
or if you are using bundler, please file an issue in their repo. We are strictly follow how Node Module System behavior and provide the correct export syntax.

from fastify-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.