Meteor problems after 1.0.3.1 update - javascript

Yesterday I ran meteor update and updated to 1.0.3.1 and it broke what I was working on.
I'm not sure what broke, but even the hello world project that ships with meteor is broken. When I do:
meteor create test
cd test
meteor run
I get these errors:
minimongo.js:3193 Uncaught SyntaxError: Unexpected end of input
ddp.js:3557 Uncaught SyntaxError: Unexpected end of input
follower-livedata.js:24 Uncaught TypeError: Cannot read property 'DDP' of undefined
application-configuration.js:24 Uncaught TypeError: Cannot read property 'DDP' of undefined
mongo.js:1000 Uncaught SyntaxError: Unexpected end of input
autoupdate.js:25 Uncaught TypeError: Cannot read property 'DDP' of undefined
livedata.js:22 Uncaught TypeError: Cannot read property 'DDP' of undefined
observe-sequence.js:24 Uncaught TypeError: Cannot read property 'LocalCollection' of undefined
blaze.js:28 Uncaught TypeError: Cannot read property 'ObserveSequence' of undefined
ui.js:22 Uncaught TypeError: Cannot read property 'Blaze' of undefined
templating.js:23 Uncaught TypeError: Cannot read property 'Blaze' of undefined
spacebars.js:25 Uncaught TypeError: Cannot read property 'Blaze' of undefined
global-imports.js:9 Uncaught TypeError: Cannot read property 'DDP' of undefined
template.test.js:2 Uncaught ReferenceError: Template is not defined
test.js:5 Uncaught ReferenceError: Template is not defined
The test.js:5 points here:
(function(){if (Meteor.isClient) {
// counter starts at 0
Session.setDefault('counter', 0);
Template.hello.helpers({ // <-error here
counter: function () {
return Session.get('counter');
}
});
I don't understand why this is causing an error.
The .html reads:
<template name="hello">
<button>Click Me</button>
<p>You've pressed the button {{counter}} times.</p>
</template>
which looks fine but maybe I am missing something.
UPDATE:
What I have tried so far:
I ran rm -rf .meteor then ran meteor rebuild and I got:
this is your first time using Meteor! Installing a Meteor distribution in your home directory.
######################################################################## 100.0%
Packages rebuilt.
which sounded good so I ran meteor run:
=> Started proxy.
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/
and still got the same errors. actually looks like it works!

Related

Salesforce LWC Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined

I am getting this error when running a Salesforce scratch org application;
aura_proddebug.js:274 Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined
at getInternalField (aura_proddebug.js:274)
at Object.update (aura_proddebug.js:1793)
at updateCustomElmDefaultHook (aura_proddebug.js:5627)
at Object.update (aura_proddebug.js:5779)
at patchVnode (aura_proddebug.js:5021)
at updateStaticChildren (aura_proddebug.js:5000)
at aura_proddebug.js:5542
at runWithBoundaryProtection (aura_proddebug.js:8255)
at updateChildrenHook (aura_proddebug.js:5541)
at Object.update (aura_proddebug.js:5751)
Has anyone experienced this before?
I was actually able to spot the issue.
This error has been thrown before in my org when I either didn't have the .html file or I had it with an improper spelling somehow; include case sensitivity on the names.
See related here:

Script errors after moving wordpress to a new domain

I've moved my wordpress from a domain to another. On the first domain everything worked fine. On the second i get a bunch of JS errors logged to the console. The url of the website is https://dexport.co.uk
The errors I have been getting look like this:
Uncaught SyntaxError: Invalid or unexpected token
jquery.js:3 Uncaught SyntaxError: Invalid or unexpected token
jquery-migrate.js?ver=1.4.1:752 Uncaught ReferenceError: jQuery is not defined
at jquery-migrate.js?ver=1.4.1:752
(index):1 Uncaught SyntaxError: Unexpected identifier
at layerslider.kreaturamedia.jquery.js?ver=6.7.6:13
(index):1 Uncaught SyntaxError: Invalid or unexpected token
at layerslider.transitions.js?ver=6.7.6:13
jquery.themepunch.tools.min.js?ver=5.4.8:23 Uncaught ReferenceError: jQuery is not defined
at jquery.themepunch.tools.min.js?ver=5.4.8:23
at jquery.themepunch.tools.min.js?ver=5.4.8:23
jquery.themepunch.revolution.min.js?ver=5.4.8:7 Uncaught ReferenceError: jQuery is not defined
at jquery.themepunch.revolution.min.js?ver=5.4.8:7
gtm4wp-form-move-tracker.js?ver=1.8.1:1 Uncaught ReferenceError: jQuery is not defined
at gtm4wp-form-move-tracker.js?ver=1.8.1:1
add-to-cart.js?ver=3.4.5:2 Uncaught ReferenceError: jQuery is not defined
at add-to-cart.js?ver=3.4.5:2
woocommerce-add-to-cart.js?ver=5.5.4:1 Uncaught TypeError: window.jQuery is not a function
at woocommerce-add-to-cart.js?ver=5.5.4:1
(index):1315 Uncaught ReferenceError: jQuery is not defined
at (index):1315
(index):1415 Uncaught ReferenceError: jQuery is not defined
at (index):1415
(index):1449 Uncaught ReferenceError: jQuery is not defined
at (index):1449
core.min.js?ver=1.11.4:11 Uncaught ReferenceError: jQuery is not defined
I added a few lines to my wp-config:
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
define( 'CONCATENATE_SCRIPTS', false );
define( 'SCRIPT_DEBUG', true );
But no succes
The error messages say: Uncaught ReferenceError: jQuery is not defined
I suppose you are storing those libraries in your server and you are not using CDN.
Verify that the path that leads to libraries such as jQuery, is properly defined in your installation and that file permissions are properly set.
1) Open your Active theme’s header.php file
2) Paste below script
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
just after the head tag.
3) Save your file.

How to record voice using ionic2 (media plugin)?

After installing the Media plugin, i followed the documentation steps to integrate the recording code.
this is my code:
`this.platform.ready()
.then(() => {
const file: MediaObject = this.media.create('my_awesome_file.mp3');
file.startRecord();
window.setTimeout(() => file.stopRecord(), 10000);
});
and when i run it on real device i got this error message:
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'create' of undefined
TypeError: Cannot read property 'create' of undefined

angularjs - Ionic/Angular1 Tlantic/cdv-socket-plugin error

TypeError: Cannot read property 'isConnected' of null
at PosCommunicator.isConnected (app.all.min.js:2926)
at app.all.min.js:3298
at Scope.$emit (libs.all.min.js:56256)
at Object.emit (libs.all.min.js:83720)
at Object.transition (libs.all.min.js:83550)
at libs.all.min.js:85379
at libs.all.min.js:83428
at Object.render (libs.all.min.js:83517)
at Object.init (libs.all.min.js:83427)
at Object.self.render (libs.all.min.js:85373)
Uncaught TypeError: Cannot read property 'plugins' of undefined
at app.all.min.js:40
at Array.<anonymous> (libs.all.min.js:81844)
at onPlatformReady (libs.all.min.js:28102)
at onWindowLoad (libs.all.min.js:28083)
I installed Tlantic/cdv-socket-plugin
but socketplugin method cannot loaded ('isConnected' of null)
Anyone can help me to solve this problem.
https://github.com/Tlantic/cdv-socket-plugin

Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined

I get
Uncaught TypeError occurs (Uncaught TypeError: Cannot read property
'__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined)
when I am using React JS
<script src="res/build/react-min.js"></script>
<script src="res/build/react-dom.min.js"></script>
The error is thrown because the react-dom cannot find an instance of React. I suppose this has something to do with the fact you are using res/build/react-min.js instead of res/build/react.min.js
Kudos for the function name in the react-dom tho:
(function(React) {
return React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
});

Categories