VueJS functions properly on Google Chrome, however it may encounter compatibility issues when using

I am currently working on a VueJs app resembling an auction, with the backend powered by Laravel. Everything runs smoothly when I test it on Chrome, but for some reason, Safari seems to be giving me trouble.

The app consists of two main components:

  • DealerAuction.vue
    • Timer.vue (nested within DealerAuction)

DealerAuction Component:

<template>
  <div class="flex flex-col items-center b p-10 rounded shadow-lg bg-white">
    // Content omitted for brevity 
  </div>
</template>

<script>
import Timer from "./Timer.vue";

export default {
  name: "DealerAuction",
  components: {
    Timer,
  },

  props: ["id", "bidder_id", "starting", "ending"],
  data() {
    // Data configuration and methods definition 
  },
};
</script>

Below is the code snippet for Timer.vue:

<template>
  <div>
    // Code for displaying timer and status messages  
  </div>
</template>

<script>
export default {
  props: ["auction", "trans", "endedParent", "beforeParent", "runningParent", "starttime", "endtime"],"`),
  data: function () {
    // Initializing data properties 
  },
</script>

<style>
// Component styling goes here
</style>

No errors are showing up in the console related to these components, yet Safari seems to have trouble rendering them correctly.

If anyone has insights or solutions, please share. I'm at a loss and would appreciate any assistance.

Thank you all for your help!

Answer №1

Unfortunately, the Developer build faces issues in Safari due to missing poly-fillers when running your application locally. The error encountered while using serve was related to Promise's; Safari requires poly-fillers for Promises.

On the other hand, the production build is expected to function properly as any necessary poly-fills would have been integrated into it during compilation.

This incident shed light on my negative experience with Apple products.

A quick note regarding Apple devices: their stringent policy mandates that all 3rd party browsers must use Apple's web rendering engine. Hence, Chrome, Firefox, etc., are essentially just overlays with additional features, meaning they do not operate on Chromium or Mozilla engines like on other platforms.

Answer №2

By implementing momentJS, the issue was successfully resolved. It turns out that Date() has a varying format on Safari, causing it to be unable to accurately determine the time difference between starttime, current time, and endtime.

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

When employing useNavigation, the URL is updated but the component does not render or appear on the

Check out this code snippet: https://codesandbox.io/p/sandbox/hardcore-lake-mptzw3 App.jsx: import ContextProvider from "./provider/contextProvider"; import Routes from "./routes"; function App() { console.log("Inside App" ...

Guide on converting JSON data into a PDF using TypeScript

I need to take JSON data and convert it into a PDF format when the PDF button is clicked in the UI. I have tried a few things but I'm struggling with binding the response to the PDF function. My goal is to display values from the "actualExpenses" arra ...

Sending an additional parameter to a callback function

I am currently working on enhancing the functionality of my custom logging system for DB operations. My goal is to generate a more visually appealing and organized format in the console by adding an additional variable called operationName to the log messa ...

Tips for effectively passing generics to React Hooks useReducer

I am currently working with React Hooks useReducer in conjunction with Typescript. I am trying to figure out how to pass a type to the Reducer Function using generics. interface ActionTypes { FETCH, } interface TestPayload<T> { list: T[]; } inter ...

Exploring the powerful trio of Node.js, MySQL, and asynchronous iterative functions

Currently grappling with an iterative function in nodejs. I'm traversing through an object and checking for any attached sub-objects (imagine a star having a planet with a moon that has an orbital station with a ship). The aim is to construct an arr ...

Get Angular events in the proper order

I am currently facing challenges with event handling in AngularJs. In my service, I send out events using the following line of code : $rootScope.$emit("FNH."+this.status, flowNodeHelper); When receiving the event in service "S1," I handle it as follows ...

The React class component is throwing an unexpected error with the keyword 'this'

I encountered an error stating "Unexpected keyword 'this'" while attempting to update the React state using Redux saga. Could someone shed light on what's wrong with the code below and how I can fix it? class Welcome extends React.Component ...

Utilizing Ajax data for CSS manipulation to display a live preview populated with form inputs

I am faced with a challenge involving a form containing approximately 80 input fields of type text and select. Each input field pertains to CSS values, and I aim to display a preview showcasing the new values (onChange any input value) in the form without ...

Utilizing a foundational element to automatically unsubscribe from multiple observable subscriptions

Within our Angular application, we have implemented a unique concept using a Base Component to manage observable subscriptions throughout the entire app. When a component subscribes to an observable, it must extend the Base Component. This approach ensures ...

Handling a JSON array error when working with a JSON string field

Attempting to create a JSONArray object with nested arrays and json strings, specifically looking at the "res" field. [{ "time": 123813213, "value": [{ "name": "task", "res": "{\"taskName\" : \"NAME\", \"ta ...

What is the best way to add up the attributes of objects within an array and save the total to the main

I have a collection of objects, illustrated here: var obj = { "ABC" : { "name" : "ABC", "budget" : 0, "expense" : 0, "ledgers" : [{ "Actual1920": 10, "Budget1920": 20, }, { "Actual1920": 10, ...

Make an AJAX GET call to an ASP.NET Web API endpoint

Here is the ajax script I am using: $.ajax({ dataType: 'json', url: url, data: tuDispId, type: "GET", success: function (data) { bindData(data); $("#ale ...

When trying to access $model.show() in Vue.js, the returned model is showing as undefined

I'm running into a console error message every time I try to click the button for $model.show('demo-login'): TypeError: Cannot read property 'show' of undefined Error output when the button is clicked: TypeError: Cannot read prop ...

What is the process for deleting headers in a $http.get call and simultaneously including "application/json" and "text/plain" under the "Accept" header?

I'm relatively new to angularjs and I'm currently working on implementing some new features to an existing Angular JS application. The current API calls are quite intricate so I decided to make a direct call. Below is the code snippet for my new ...

Disabling related videos in React Native: A guide to preventing suggested content from appearing at the end of YouTube videos

Is there a way to turn off the display of related videos after a YouTube video ends in react native? I've tried the following code, but it doesn't seem to be working: state = { isPlaying: true, related :false, }; <YouTube apiKe ...

Using dynamic, deferred loading of scripts in JavaScript

Is it necessary to create a reference for a dynamic, lazy import that is used multiple times in a script? For example, if there are 2 event handlers importing different functions from the same module: /* index.js */ window.addEventListener("click", (e) =&g ...

JavaScript Thumbnail Slider Builder

I've been working hard on developing a custom JavaScript thumbnail slider that uses data-src. Everything seems to be in order, except the next and previous buttons are not functioning properly. Any assistance would be greatly appreciated. Here's ...

Tips for displaying an element for each item chosen in a multi-select box

I currently have a situation where I am rendering for every selected element within my multiselect angular material selectbox. The rendering process functions correctly when I select an element, but the issue arises when I try to deselect one - it just ke ...

iPad problem resolved: Disable click hover and double-click issue

I'm experiencing a problem with my web application specifically on Safari for iPad. I have to click twice in order to actually perform the click on the <a> tag. The first click triggers a hover effect, similar to when you hover with a mouse on d ...

Is there a way to dynamically incorporate line numbers into Google Code Prettify?

Having some trouble with formatting code and inserting/removing line numbers dynamically. The line numbers appear on the first page load, but disappear after clicking run. They don't show at all on my website. I want to allow users to click a button a ...