Issue encountered while upgrading @adonisjs/ally from version 2.1.3 to 4.1.3

Upon updating @adonisjs/ally from version 2.1.3 to 4.1.3, I encountered an error stating Cannot find module 'Model. To address this, I decided to comment out the AllyProvider line and try running it again. Although the error disappeared, I now face issues with logging in using Facebook and Google. It seems like something went wrong but I can't pinpoint what exactly. (I am using adonis 4.1.0) Any suggestions would be greatly appreciated as I have spent a considerable amount of time updating adonisjs ally to version 4.1.3.

The error message I received: https://i.sstatic.net/icOQy.png

I commented out the access provider ally in app.js: https://i.sstatic.net/Qhl3s.png

In my package.json file: https://i.sstatic.net/rVfvD.png

Answer №1

Ensure that the directory "node_modules" contains a subfolder named "ally/providers". If it does not exist, check for a subfolder named "build" and within it, verify if there is a folder named "provider" and locate the file "AllyProvider.js".

Once you have confirmed this folder structure, update the code in "start/app.js" within the section "const providers = {...}" as follows: from: '@adonisjs/ally/providers/AllyProvider' to: '@adonisjs/ally/build/providers/AllyProvider'

If the issue persists, consider uninstalling the package and reinstalling version 2.1.3, which should work correctly with the configuration: '@adonisjs/ally/providers/AllyProvider'

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

JavaScript for Audio: How to Play Sound

I've been struggling to make this play a sound in Firefox, IE, or Chrome. No matter what I do, it just won't work. <html> <head> <script type="text/javascript"> function playSound() { var audio = document.createElem ...

JavaScript code is functioning properly on Chrome and Internet Explorer, however, it may not be working on FireFox

Despite searching through the console, I am unable to find a solution to this issue. There are two images in play here - one is supposed to appear at specific coordinates while the other should follow the mouse cursor. However, the image intended to track ...

The ability to submit a conversation chat is currently

I encountered an issue when attempting to submit a chat, and I received the error message 'handlebar is not define'. I followed the code tutorial provided in this link: https://codepen.io/drehimself/pen/KdXwxR This is the screenshot of the error ...

Managing dependencies in YARN or NPM by ensuring the installation of package versions that are compatible with specific dependency versions

Consider a scenario where the dependencies section in the package.json file looks like this: "dependencies": { "A": "1.0.0" } Now, let's say that the current version of package A is 3.0.0, but for our project we specifically need version 1.0 ...

Retrieve the overall number of Formik errors for a specific field array

In the given Yup validation setup below, there is a nested Formik FieldArray: parentLevel: Yup.array().of( Yup.object({ childrenLevel: Yup.array().of( Yup.object({ childName: Yup.string().required('Name is required') ...

Accessing embedded JSON data in Javascript: A step-by-step guide

{ "category": [ { "category_id": "1", "category_name": "Top Picks ", "cover_url": "http://www.example.com" }, { "category_id": "2", "category_name": "Latest Releases", "cover_url": "http://www.exa ...

The error event in events.js on line 72 was not properly handled, causing an exception to be thrown

When attempting to utilize the node-ar-drone package to control an AR Parrot Drone 2 and interface with it, I encounter errors after connecting to the drone's wireless network on my OSX Yosemite: 587214779:examples mona$ node png-stream.js Connectin ...

Accessing and modifying the HTML content of a specific <td> element within a specified <tr> row

Thank you for the assistance with my previous question - it was very helpful. However, I have encountered a new issue. I am able to automatically refresh my "Table" every 5 seconds with the following code: function GetStatus() { $.ajax({ url: ...

Adapting the colors of various elements throughout the entire webpage

My goal is to incorporate color-switch buttons on my webpage. When these buttons are clicked, I want the existing colors to change to different shades. However, my challenge lies in the fact that these colors are used for various elements such as backgro ...

Delightful Bootstrap Tabs with Dynamic Content via Ajax

My website has a lot of tabs designed with Bootstrap. I wanted to make them responsive, so I tried using a plugin called Bootstrap Tabcollapse from https://github.com/flatlogic/bootstrap-tabcollapse (you can see a demo here: http://tabcollapse.okendoken.co ...

Is it possible to refresh the options for a select in AngularJS when they are in different controllers?

Two separate controllers are being used here; one for language, known as `langCntl`, and one for words, referred to as `wordCntl`. Within the `wordCntl` controller, there is an attribute called `ln`. This attribute is displayed in a form using `ng-select` ...

Encountering the error message "The function $(...).tablesorter is not defined" while using webpack

After updating to Rails 6 with Webpack, I'm encountering the error message Uncaught TypeError: $(...).tablesorter is not a function. Below is the snippet of my environment.js file: const { environment } = require('@rails/webpacker') const w ...

Is there a way to exit PHP code automatically after a set time?

Is there a way to end my PHP code execution after 10 seconds? I've come across this piece of code, but it doesn't seem to work. set_time_limit(10); // This line is restricted by the server ini_set('max_execution_time', 10); ...

Vue: restrict entry to the view unless props are configured

Currently, I am in the process of creating a Vue game that consists of two main views: a 'setup' view and a 'play' view. The values that are configured in the setup view are then passed as props to the play view, initiating the game wit ...

What is the best way to record and share a video with jquery and laravel?

Is there a way to grant users access to record videos within an application and then upload them after previewing? I've been able to successfully record and download a video, but now I'm unsure of how to proceed with uploading it to the server. ...

JavaScript: Finding the current month and all subsequent months until the end of the year

Is there a way in vanilla JavaScript to retrieve the current month and the following 12 months? For instance, if today is April 2022, I would like the output to be: April 2022 May 2022 June 2022 July 2022 August 2022 September 2022 October 2022 November 2 ...

Quick method for handling arrays to generate waveforms

I'm currently working on optimizing the code for my web application. While it functions, the performance is a bit slow and I am looking to make improvements: The main concepts behind the code are: The function retrieves the current buffer and conve ...

Populate a Dropdown Menu with Directory Content for User Selection of d3.js JSON Data

I have a d3 forced-directed graph that is currently using a static JSON file for data: d3.json("../Data/sample.json", function(error, graph) { //do stuff }); However, I would like to give the user the ability to select the data file from a drop-down ...

Incorporating an else statement into a function that handles AJAX calls upon receiving a response

My code is almost perfect, but there's just one issue. Whenever an invalid email is entered, the else statement in the PHP response makes it look like the form was still successful. How can I modify my current code to display the appropriate error mes ...

Updating a slider based on the values of two other sliders can be achieved by implementing a

I am working on a project that involves three input sliders. I need the third slider to display the product of the values from the first two sliders. Additionally, I want the value of the third slider to update dynamically whenever the values of the first ...