I'm new at Nativescript. Whenever I try to compile a project on my iPhone; It gives me this exception.
My phone on 14.0 and Nativescript on 7.0.11
Log is there:
2020-12-01 00:12:26.786 nsplaydev[49332:2731673] JavaScript error:
file:///app/tns_modules/react-nativescript/dist/nativescript-vue-next/runtime/registry.js:61:14: JS ERROR
ReferenceError: Can't find variable: _TEST_
2020-12-01 00:12:26.788 nsplaydev[49332:2731673] PlayLiveSync: Uncaught Exception
NativeScript encountered a fatal error: ReferenceError: Can't find variable: _TEST_
at
anonymous(file:///app/tns_modules/react-nativescript/dist/nativescript-vue-next/runtime/registry.js:61:14)
Related
chrome.tabs.create({cookieStoreId:"4"})
When i am trying to use above code in chrome extension it is showing following error:
Uncaught TypeError: Error in invocation of tabs.create(object createProperties, optional function callback): Error at parameter 'createProperties': Unexpected property: 'cookieStoreId'.
at :1:13
I am following documentation of :
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/create
https://docs.w3cub.com/web_extensions/api/tabs/create
I have also included permissions of cookies in manifest.
For some reason I get this error when I'm building on iOS on my mac.
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught ReferenceError: __UI_USE_EXTERNAL_RENDERER__ is not defined
at
(file: src/packages/core/bundle-entry-points.ts:7:0)
at ../node_modules/#nativescript/core/bundle-entry-points.js(file:///app/vendor.js:2442:30)
at __webpack_require__(file: src/webpack/bootstrap:816:0)
at fn(file: src/webpack/bootstrap:120:0)
at (file: src/main.ts:1:35)
at ./main.ts(file:///app/bundle.js:6855:30)
at __webpack_require__(file: src/webpack/bootstrap:816:0)
at checkDeferredModules(file: src/webpack/bootstrap:43:0)
at webpackJsonpCallback(file: src/webpack/bootstrap:30:0)
at (file:///app/bundle.js:2:57)
at require(:1:137)
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught ReferenceError: __UI_USE_EXTERNAL_RENDERER__ is not defined
at
(file: src/packages/core/bundle-entry-points.ts:7:0)
at ../node_modules/#nativescript/core/bundle-entry-points.js(file:///app/vendor.js:2442:30)
at __webpack_require__(file: src/webpack/bootstrap:816:0)
at fn(file: src/webpack/bootstrap:120:0)
at (file: src/main.ts:1:35)
at ./main.ts(file:///app/bundle.js:6855:30)
at __webpack_require__(file: src/webpack/bootstrap:816:0)
at checkDeferredModules(file: src/webpack/bootstrap:43:0)
at webpackJsonpCallback(file: src/webpack/bootstrap:30:0)
at (file:///app/bundle.js:2:57)
at require(:1:137)
', reason: '(null)'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff20422fba __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20193ff5 objc_exception_throw + 48
2 NativeScript 0x0000000106c2d914 _ZN3tns21NativeScriptException15OnUncaughtErrorEN2v8<…>
Yesterday it worked perfectly fine, so I'm kind of surprised to see an error. I tried cleaning the platforms and upgrading to a newer version, but nothing works.
Nothing has changed for as much as I know.
I also tried testing it with other branches, and even there I get this error.
Any suggestions?
Maybe is a problem with your version of #nativescript/webpack, if you migrated to NativeScript 8.1 you should update your version of #nativescript/webpack to 5.0.0 as pointed here
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.
Im currently testing my angular app, it's using angular (1.5) + typescript(^1.8.0) + karma (^0.13.14);
I've got the following error when trying to run karma:
"Unhandled rejection TypeError: this.emitter.refreshFiles is not a
function
at Plugin.notifyKarmaAboutChanges (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/karma-webpack-with-fast-source-maps/index.js:148:15)
at Plugin. (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/karma-webpack-with-fast-source-maps/index.js:104:9)
at Compiler.applyPlugins (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/tapable/lib/Tapable.js:25:14)
at Watching._done (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:93:17)
at Watching. (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:76:18)
at Compiler.emitRecords (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:319:37)
at Watching. (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:59:19)
at /Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:312:11
at Compiler.applyPluginsAsync (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/tapable/lib/Tapable.js:73:70)
at Compiler.afterEmit (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:309:8)
at Compiler. (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:304:14)
at /Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/async/lib/async.js:52:16
at Object.async.forEachOf.async.eachOf (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/async/lib/async.js:236:30)
at Object.async.forEach.async.each (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/async/lib/async.js:209:22)
at Compiler.emitFiles (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:272:20)
at MemoryFileSystem.(anonymous function) [as mkdirp] (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/karma-webpack-with-fast-source-maps/node_modules/webpack-dev-middleware/node_modules/memory-fs/lib/MemoryFileSystem.js:283:10)"
So I can only restart karma to run my test again instead of letting karma to auto refresh for me. Can't find similar issue on stackoverflow, so I post my issue here. Any suggestions?
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!