Right now I'm using twilio-video.js with meteor, and it prevents the app from starting on IE. I know that twilio-video doesn't support IE calling, but on non-meteor builds it will just warn you, whereas on meteor it will prevent the app from starting.
This is the error that occurs: Unable to get property 'meteorInstall' of undefined or null reference
Removing twilio-video fixes this.
Related
I'm trying to use tone.js in a next.js react project.
When I run or build i get this error "ReferenceError: AudioBuffer is not defined"
I have isolated the tone.js code in codesandbox and it's working perfectly.
https://codesandbox.io/s/tonejs-react-pink-noise-generator-pfnl0?file=/src/App.js
But not in the next.js app
ReferenceError: AudioBuffer is not defined
at ki (/node_modules/tone/build/Tone.js:1:117922)```
AudioBuffer is a web browser thing, it does not exist in node.js. The error you are getting is because the code that uses AudioBuffer can't run on the server. You need to instantiate that part of the code only in the browser. That is usually done in useEffect hook, or on the server, you can first check if window object is defined.
I am getting the following console error:
Uncaught (in promise) DOMException: The requested version (1) is less than the existing version (3).
Looking through the all IndexedDB options for my domain in Chrome developer tools > 'Application' (tab) > 'Storage' selection (in sidebar) > 'IndexedDB' (dropdown):
The only selection that I see with a version 3 is the fcm_token_details_db option.
Has something changed? Is this a bug? It seems to me that there's no way for me to explicitly declare the version for this, that it's declared in the FCM messaging library.
The issue was from running 2 different versions of the FCM scripts in different places. In one file we had:
importScripts('https://www.gstatic.com/firebasejs/4.6.2/firebase-app.js')
importScripts('https://www.gstatic.com/firebasejs/4.6.2/firebase-messaging.js')
and in another area we had:
importScripts('https://www.gstatic.com/firebasejs/5.4.1/firebase-app.js')
importScripts('https://www.gstatic.com/firebasejs/5.4.1/firebase-messaging.js')
Somewhere between the above mentioned script versions, Firebase made updates to the Indexedb version number.
There doesn't seem to be mention of this in the release docs.
https://firebase.google.com/support/release-notes/js
I have no idea what to do here. Everything was working fine but all of a sudden when I deploy now I get cryptic errors
Uncaught TypeError: Cannot read property 'helpers' of undefined
bf828391c4c2197419ba1631eee96dfda64d3e0a.js:111 Uncaught TypeError: Cannot read property 'ServiceConfiguration' of undefined
memrey.meteor.com/:1 Document was loaded from Application Cache with manifest http://memrey.meteor.com/app.manifest
memrey.meteor.com/:1 Application Cache Checking event
bf828391c4c2197419ba1631eee96dfda64d3e0a.js:3 Exception in callback of async function: TypeError: Cannot read property 'form' of undefined
at x.setState (http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:135:16160)
at a.contains.o.route.a.extend.onBeforeAction (http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:142:3525)
at p (http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:72:4036)
at http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:3:6711
at C (http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:82:4631)
at p (http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:72:4036)
at http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:3:6711
at b (http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:82:4559)
at p (http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:72:4036)
at http://memrey.meteor.com/bf828391c4c2197419ba1631eee96dfda64d3e0a.js:3:6711
memrey.meteor.com/:1 Application Cache NoUpdate event
bf828391c4c2197419ba1631eee96dfda64d3e0a.js:64 Route dispatch never rendered. Did you forget to call this.next() in an onBeforeAction?
The code is working just fine locally. So I am lost. I don't even know where to begin debugging.
I am using iron router with useraccounts template package. I am not sure if it is related to that.
Ok I found out what the issue is.
When I defined a template helper like:
Template.notification.helpers
I misspelled notification
Which caused all the errors. But what is strange is that it worked locally but not when deployed.
Exceptions may be tolerated because they are in seperate files when working in development mode, however when deployed in production they're minified and join so the execution of the js file is stopped.
Source
I am having a problem with using jQuery in my Meteor app. It is undefined.
When I look inside .meteor/versions, I can clearly see:
jquery#1.11.3_2
But when I type $ or jQuery in my Chrome console, I get undefined. Also, I cannot use external packages that use any jQuery; I get undefined is not a function exception.
Manually adding jQuery package by meteor add jquery did not solve the issue.
Any idea why this happens?
jQuery is inside the meteor core and defined as a dependency inside meteor-platform. So I never declare it as a a dependency. Meteor relies heavily on it, so it's unlikely to ever be removed. Unlike underscore, which they stated they will remove in a future release. Meteor always aliases $. So that should work. It can't be an issue with that specific version. I'm running the same without any issues. Here are some things you could try to debug:
Create a new project and check if JQ works
Check if an installed package is causing the problem (by removing them one by one)
Packages get loaded before your code, so that can't be the problem.
I am new to asp.net. I am learning SignalR, going through this tutorial. I have created everything correctly as mentioned in the tutorial. Now when I ran the Console Application, ERROR --> "One or more errors occurred." at hubConnection.Start().Wait();.(the console application is still running). Anyhow I tried even running the Web application which is not giving any error but the button broadcast doesnt do any action(I think it should). When I checked the code in Web application, I saw that one of the script source has green scribbles. Here is the Image.
Please explain what I am doing wrong..
Edit: I am using ASP.NET Development server.
Edit2: The errors I get in Google Chrome Console are:
Uncaught Error: SignalR: jQuery not found. Please ensure jQuery is referenced before the SignalR.js file. jquery.signalR-1.0.0-alpha2.min.js:10
Uncaught TypeError: Cannot read property 'signalR' of undefined hubs:17
Uncaught ReferenceError: $ is not defined
Answer: I just added reference of jQuery in my code above all the scripts and the "file not found" error is careless because it is running on server side.
The Link has also been updated with reference to jQuery
Just for anyone else who comes across this problem, I made the mistake of just copying the code from the tutorial and updating to the latest version of SignalR. The version had obviously changed and this needs to be updated in the script references i.e.
The jQuery src should be (depending on the version of signalR you have installed):
<script src="Scripts/jquery.signalR-1.1.3.js"></script>
The same thing would obviously apply to the standard jQuery library.
The error message describes fully what the problem is:
Uncaught Error: SignalR: jQuery not found. Please ensure jQuery is referenced before the SignalR.js file.
You need to include jQuery.
try "signalr/hubs" instead of "/signalr/hubs"
If the jQuery version is defined with npm with a *, e.g: "jquery": "*", in package.json and that version get's upgraded you might also see an issue very similar to this.
So downgrade the version of jQuery: "jquery": "2.2.4",
Today, I upgraded jQuery and SignalR to 2.2.0 and jQuery could not loading although I added jQuery before SignalR.
And, I downgraded jQuery as 2.1.4 system working well.
<script type="text/javascript" src="Scripts/jquery-2.1.4.js"></script>
<script type="text/javascript" src="Scripts/jquery.signalR-2.2.0.js"></script>