Code Monkey home page Code Monkey logo

Comments (10)

L2jLiga avatar L2jLiga commented on August 20, 2024 2

I've faced with same issue using TypeScript -> ESM

from fastify-passport.

aspiiire avatar aspiiire commented on August 20, 2024 1

Thanks you for your help Matteo and also thank for this amazing package

from fastify-passport.

aspiiire avatar aspiiire commented on August 20, 2024 1

I didn't write this :). @airhorns did most of the work!

Sorry i was talking about fastify

from fastify-passport.

mcollina avatar mcollina commented on August 20, 2024

Are you using typescript, faux modules (esm module or webpack) or native esm?

from fastify-passport.

aspiiire avatar aspiiire commented on August 20, 2024

Are you using typescript, faux modules (esm module or webpack) or native esm?

Javascript with webpack

from fastify-passport.

mcollina avatar mcollina commented on August 20, 2024

you are likely having some problems with import and that config. Try using require instead.

from fastify-passport.

aspiiire avatar aspiiire commented on August 20, 2024

I cannot use require, also in the example it uses import, it should work...

there is any alternative? i am stuck and i need this package do you have any suggestion how to move forward?

edit: i think that right now i can go with fastify-oauth2

from fastify-passport.

mcollina avatar mcollina commented on August 20, 2024

@fastify/typescript could you take a look at this? I think we should update the readme somehow to show how to use this module with commonjs instead, as import can mean so many different things to folks.

there is any alternative? i am stuck and i need this package do you have any suggestion how to move forward?

I recommend you to check your webpack config and inspect how the final code is actually generated. You might just have to tweak some options to make it work.

from fastify-passport.

mcollina avatar mcollina commented on August 20, 2024

I didn't write this :). @airhorns did most of the work!

from fastify-passport.

Ethan-Arrowood avatar Ethan-Arrowood commented on August 20, 2024

@aspiiire did you figure out a solution here? If you can share a simplified reproduction that'll help us narrow down the problem you're having

from fastify-passport.

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.