Coder Social home page Coder Social logo

Running yarn develop on Strapi 4.6.0 produces TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined about strapi-google-auth HOT 7 CLOSED

arjusmoon860 avatar arjusmoon860 commented on August 16, 2024
Running yarn develop on Strapi 4.6.0 produces TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

from strapi-google-auth.

Comments (7)

robmanganelly avatar robmanganelly commented on August 16, 2024

Same issue with Strapi 4.6.1 and Node 18. I got a dependency conflict when I tried to install using pnpm. After trying with yarn, I got the issue described above, and after trying many (silly) solutions, yarn complaint that plugin didn't support installation with Node 18 engine.

from strapi-google-auth.

Antvirf avatar Antvirf commented on August 16, 2024

Same issue with Strapi 4.6.1 and Node 18. I got a dependency conflict when I tried to install using pnpm. After trying with yarn, I got the issue described above, and after trying many (silly) solutions, yarn complaint that plugin didn't support installation with Node 18 engine.

@robmanganelly yarn wasn't initially happy with this either (and of course I don't really know yet if this is supposed to work with node 18 anyway...), but I got it to install with:

yarn add strapi-google-auth --ignore-engines

from strapi-google-auth.

MokDevelopment avatar MokDevelopment commented on August 16, 2024

I am on node/16.19.1 & Strapi 4.7.1

  • Same issue.

I also created a fresh blank strapi app:

  • Same issue.

To me this looks more as if the plugin is not maintained / not compatible to Strapi 4.6.1 >

from strapi-google-auth.

MokDevelopment avatar MokDevelopment commented on August 16, 2024

I happens when adding the details to the config:
// "google-auth": {
// enabled: true,
// resolve: "./node_modules/strapi-google-auth/" // resolves the issue
// },

When not defined the issue seems to vanish.
Still the plugin seems to be usable?!

from strapi-google-auth.

boogiebug avatar boogiebug commented on August 16, 2024

Is it about the plugin folder should be in the format of strap-plugin-<plugin-name>?

from strapi-google-auth.

joffreyBerrier avatar joffreyBerrier commented on August 16, 2024

To solve that put this in your plugins:

module.exports = ({ env }) => ({
  'google-auth': {
    clientID: env('GOOGLE_CLIENT_ID'),
    clientSecret: env('GOOGLE_CLIENT_SECRET'),
    redirectUri: env('GOOGLE_REDIRECT_URI'),
  },
});

This is the key enabled: true it doesn't work

from strapi-google-auth.

arjusmoon860 avatar arjusmoon860 commented on August 16, 2024

The plugin now works with the latest version of strapi & node 18.x.x. Please read the documentation given in the git repo.
Closing this issue for now. Please reopen if you are facing any issue.

Thanks.

from strapi-google-auth.

Related Issues (17)

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.