StoreDevTools crash on an older setup - ngrx-store

I am trying to instrument StoreDevTools with an oldish version of Angular (4.1.x) and #ngrx/store (5.2.0).
The zone.js version installed is 0.8.29
If I do the recommended way (ie. after StoreModule and EffectsModule) (app.module.ts):
StoreModule.forRoot({}),
EffectsModule.forRoot([]),
StoreDevtoolsModule.instrument({
name: 'myApp',
maxAge: 50,
}),
then the StoreDevTools crash with
Error:
zone.js?6788:682 Unhandled Promise rejection: Object(...) is not a function ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Object(...) is not a function
at new StoreDevtools (store-devtools.js?51ff:764)
the js line referred says:
var liftedAction$ = merge(merge(actions$.asObservable().pipe(skip(1)), extension.actions$).pipe(map(liftAction)), dispatcher, extension.liftedActions$).pipe(observeOn(queueScheduler));
When I do the other way around, the StoreDevTols don't crash, but the inspector cannot see the store in there.
Both modules are receiving empty data because I am just putting the store in place and I start with a feature module.
StoreModule.forFeature('Feature1', feature1Reducer),
EffectsModule.forFeature([
Feature1Effects,
]),
There is no data stored at the root level, like app or auth just yet.
Is the error caused by dependencies (like zone.js for example) or by how I set up my store?
Redux DevTools 2.17.0

Old question, but if it helps anyone - I had a the same error after upgrading an old app to use #ngrx/store to 4.1.1
I had to match #ngrx/store-devtools to the same version number as the other #ngrx deps.
npm had initially installed it at latest which was 8.x at time of writing. As soon as the deps were matched the app and store loaded fine
"#angular/core": "5.2.11",
...
"#ngrx/effects": "4.1.1",
"#ngrx/store": "4.1.1",
"#ngrx/store-devtools": "4.1.1",
....
"zone.js": "0.8.12"

Related

Unity auto resolution failed ,able to build the file but no ads on build

I am unity beginner made my first game ,all was working good until i try to implement the damn google ads .I am using unity 2020.3and ad mobile sdk 6.1 .Upon import the auto resolution failed .
https://imgur.com/FSxU4Lb
Here are three errors
https://imgur.com/8RwlRO8
Gradle failed to fetch dependencies.
Failed to run 'H:\Unity\Practice\AdsTesting\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "H:\Unity\Practice\AdsTesting\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=C:/Program Files/Unity/2020.3.18f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=H:\Unity\Practice\AdsTesting\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:20.0.0" "-PUSE_JETIFIER=0" "-PDATA_BINDING_VERSION=4.0.1"'
stdout:
Unzipping C:\Users\Nofil Jamil Khan\.gradle\wrapper\dists\gradle-5.1.1-bin\90y9l8txxfw1s2o6ctiqeruwn\gradle-5.1.1-bin.zip to C:\Users\Nofil Jamil Khan\.gradle\wrapper\dists\gradle-5.1.1-bin\90y9l8txxfw1s2o6ctiqeruwn
stderr:
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:219)
at java.util.zip.ZipFile.<init>(ZipFile.java:149)
at java.util.zip.ZipFile.<init>(ZipFile.java:163)
at org.gradle.wrapper.Install.unzip(Install.java:214)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:74)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
exit code: 1
UnityEngine.Debug:LogError (object)
Google.Logger:Log (string,Google.LogLevel) (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/Logger.cs:136)
GooglePlayServices.PlayServicesResolver:Log (string,Google.LogLevel) (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1055)
GooglePlayServices.GradleResolver/<GradleResolution>c__AnonStorey1:<>m__2 (GooglePlayServices.CommandLine/Result) (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:451)
GooglePlayServices.GradleResolver/<GradleResolution>c__AnonStorey1/<GradleResolution>c__AnonStorey3:<>m__0 () (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:564)
Google.RunOnMainThread:ExecuteNext () (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:486)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1 () (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:536)
Google.RunOnMainThread:RunAction (System.Action) (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested (bool) (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:ExecuteAll () (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:512)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
Here is error 2
Resolution failed
Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads:20.0.0
UnityEngine.Debug:LogError (object)
Google.Logger:Log (string,Google.LogLevel) (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/Logger.cs:136)
GooglePlayServices.PlayServicesResolver:Log (string,Google.LogLevel) (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1055)
GooglePlayServices.GradleResolver:LogMissingDependenciesError (System.Collections.Generic.List`1<string>) (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:95)
GooglePlayServices.GradleResolver/<DoResolutionUnsafe>c__AnonStorey8:<>m__1 (System.Collections.Generic.List`1<Google.JarResolver.Dependency>) (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:912)
GooglePlayServices.GradleResolver/<GradleResolution>c__AnonStorey1:<>m__0 () (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:375)
GooglePlayServices.GradleResolver/<GradleResolution>c__AnonStorey1:<>m__2 (GooglePlayServices.CommandLine/Result) (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:454)
GooglePlayServices.GradleResolver/<GradleResolution>c__AnonStorey1/<GradleResolution>c__AnonStorey3:<>m__0 () (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:564)
Google.RunOnMainThread:ExecuteNext () (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:486)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1 () (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:536)
Google.RunOnMainThread:RunAction (System.Action) (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested (bool) (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:ExecuteAll () (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:512)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
Here is error 3
Resolution Failed.
Resolution failed
Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads:20.0.0
UnityEngine.Debug:LogError (object)
Google.Logger:Log (string,Google.LogLevel) (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/Logger.cs:136)
GooglePlayServices.PlayServicesResolver:Log (string,Google.LogLevel) (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1055)
GooglePlayServices.PlayServicesResolver/<ResolveUnsafe>c__AnonStorey9:<>m__0 (bool,string) (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1913)
GooglePlayServices.PlayServicesResolver/<ResolveUnsafe>c__AnonStorey9:<>m__4 () (at Z:/tmp/tmp.CzMQNSaNjS/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1980)
Google.RunOnMainThread:ExecuteNext () (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:486)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1 () (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:536)
Google.RunOnMainThread:RunAction (System.Action) (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested (bool) (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:ExecuteAll () (at Z:/tmp/tmp.DHbeDZTDK0/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:512)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
Now build is succeeded even with all these errors but problem is that i m able to see ads in unity editor but not in build
https://imgur.com/G2OD552
https://imgur.com/a3IIhFR
please help me I am banging my head for a week now ,did all solutions on net that are there even did fresh installation of unity
So if for any one who stumbled upon here , I solved it by
1.I accidentally copied some files in user C:\Users\Nofil Jamil Khan.gradle\wrapper\dists
I deleted 5.1.1. bin and restarted my unity
imported 6.1 plugin again in unity and resolution worked!!!
The next big problem was ads not working when app builds so clearly resolution failed was big issue .when i solved it .
ads very not working ,But they started working as soon as i tested out few small test projects .then i moved to project where the problem arised and found it i have custom key in key manager .I uncheck custom key and ads start showing ,when i enabled custom key and added new key .the ads were still working but not working with older keys .Still dont know what was issue but this is all the issue i have .Make sure to keep the recommended options in unity preferences in in external tools

Missing refs while upgrading a Nativescript plugin (tns-core-modules → #nativescript/core migration)

I'm updating an existing plugin in order to make it compatible with the upcoming nativescript release.
All references to the tns-core-modules package have been replaced with #nativescript/core.
The released documentation says that the new libraries should be retro-compatible with older versions. Unfortunately in this case something must have changed (related to the view lifecycle), and the plugin is not 100% working.
That's why I attempted a full migration of it's dependencies, but the build process was not possible due to some errors:
node_modules/#nativescript/core/ui/frame/index.d.ts:494:38 - error TS2304: Cannot find name 'ModuleContext'.
494 export function reloadPage(context?: ModuleContext): void;
...
map-view.ios.ts:80:40 - error TS2304: Cannot find name 'WeakRef'.
80 public static initWithOwner(owner: WeakRef<MapView>): MapViewDelegateImpl {
node_modules/#nativescript/core/ui/styling/style/index.d.ts:31:39 - error TS2304: Cannot find name 'WeakRef'.
31 constructor(ownerView: ViewBase | WeakRef<ViewBase>);
I can build the plugin by setting skipLibCheck: true in tsconfig.json. It makes the plugin compile, but the problem comes out later at runtime.
So it must be solved to complete the migration.
Any hints?
Thank you!
Maybe it's not the 100% recommended solution, but in case that the same problem does happen to you, add this line to your tsconfig.json:
"types": [
"#nativescript/core",
],

Qt Release application with PSQL database - error on loading driver

With QtCreator (for version 57) I created simple application that connects to DB and waits for notifications. There isn't realy much code for it and all of it works on LINUX:
MyDataBase = new QSqlDatabase(QSqlDatabase::addDatabase("QPSQL", "Main"));
Unfortunetly after transitioning from Linux to Windows (on which app will by mainy used) I encounteredd some issues. As usuall, missign dlls, but those were quick fast (copy-paste given .dll). Now I can't run this still on Windows, because it refuses to connect to db. With system's variable I managed to find more. Now even when I see error I can't even grasp what else could I do to make it work:
Found metadata in lib C:/_Qt/5.7/mingw53_32/plugins/sqldrivers/qsqlpsqld.dll, metadata=
{
"IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
"MetaData": {
"Keys": [
"QPSQL7",
"QPSQL"
]
},
"className": "QPSQLDriverPlugin",
"debug": true,
"version": 329472
}
"The plugin 'C:/_Qt/5.7/mingw53_32/plugins/sqldrivers/qsqlpsqld.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
not a plugin
QFactoryLoader::QFactoryLoader() checking directory path "D:/QT_Notifi/build-Notifier-Desktop_Qt_5_7_0_MinGW_32bit-Release/release/sqldrivers" ...
loaded library "C:/_Qt/5.7/mingw53_32/plugins/sqldrivers/qsqlpsql.dll"
QLibraryPrivate::loadPlugin failed on "C:/_Qt/5.7/mingw53_32/plugins/sqldrivers/qsqlpsql.dll" : "Cannot load library C:\\_Qt\\5.7\\mingw53_32\\plugins\\sqldrivers\\qsqlpsql.dll: %1 is not correct application of Win32."
QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7

Pebble can't install app in any way - cloudpebble or command line

I've enjoyed developing simple apps for my pebble watch, but since yesterday I cannot install any new ones on my phone (I do have spare slots on pebble).
I've tried installing old (working) apps via cloudpebble portal, but I get following:
Saving
Compiling
Preparing to install app
Installation rejected. Check your phone for details.
(Phone message: There was an error trying to install the provided app.)
So I've tried installation through a command line:
$ pebble install --cloudpebble -vvvv
But this is the output:
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 209.118.208.39
DEBUG:pebble_tool.util.analytics:Queueing analytics data: {'platform': 'native_sdk', 'data': {}, 'event': 'invoke_command_install', 'identity': {'sdk_client_id': '93381446-f47e-4be5-bd4a-781af1f42c3a', 'user': u'55b8844a6638300025560100'}, 'sdk': {'project': {'sdk': u'3', 'is_watchface': True, 'type': 'native', 'uuid': '2737c550-fd8a-4e70-82be-1b887e5d7a4d', 'app_name': u'MoveInGrid'}, 'host': {'platform': 'Darwin-15.2.0-x86_64-i386-64bit', 'python_version': '2.7.10', 'is_vm': False}, 'version': u'3.8.2', 'tool_version': '4.0.1'}}
DEBUG:requests.packages.urllib3.connectionpool:"HEAD / HTTP/1.1" 301 0
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): td.getpebble.com
DEBUG:requests.packages.urllib3.connectionpool:"POST /td.pebble.sdk_events HTTP/1.1" 200 0
Waiting for phone to connect...
Connected.
DEBUG:libpebble2.communication:-> WatchVersion(command=None, data=WatchVersionRequest())
DEBUG:libpebble2.communication:-> 0001001000
DEBUG:libpebble2.communication:<- 00960010015509b4fb76322e392e31000000000000000000000000000000000000000000000000000035343636346264000005015222545f76312e352e350000000000000000000000000000000000000000000000000000316331363237350001050152e2f83256335233000000000051313536303535453030513604750648b4b026658a035509b4fb656e5f55530000015858585858585800
DEBUG:libpebble2.communication:<- WatchVersion(command=1, data=WatchVersionResponse(running=WatchFirmwareVersion(timestamp=1426699515, version_tag=v2.9.1, git_hash=54664bd, is_recovery=False, hardware_platform=5, metadata_version=1), recovery=WatchFirmwareVersion(timestamp=1377981535, version_tag=v1.5.5, git_hash=1c16275, is_recovery=True, hardware_platform=5, metadata_version=1), bootloader_timestamp=1390606386, board=V3R3, serial=Q156055E00Q6, bt_address=04750648b4b0, resource_crc=644188675, resource_timestamp=1426699515, language=en_US, language_version=1, capabilities=24866934413088856, is_unfaithful=None))
Installing app...
App install failed.
INFO:root:Spent 0.001597 seconds waiting for analytics.
I've tried several things to resolve this issue:
creating new project from provided template;
disconnecting the watch;
watch factory reset;
iOS pebble app reinstallation;
creating and linking to a new cloudpebble account,
but still no luck installing any new apps or reinstalling old ones...
Any help would be greatly appreciated (or more tips on what else to try...).
PS: Apps load just fine in an emulator.
PS2: I can download and install apps from the store just fine [I found PixelMiner that way : )].
PS3: I do have a developer connection on and there is a valid IP shown on iOS app.
I got an answer from Morris on pebble forums. I was developing for SDK3, but still running older version of firmware on a pebble watch. After an update, deployment works again!
Original response:
You are building with the latest SDK but your watch has not the latest firmware.
You either have to upgrade your Pebble Classic to firmware V3.8.2 (see Upgrade to SDK3) or if you want to build for the old firmware you have to use SDK2 instead (see SDK2)

cordova windows error: "cordova/windows8/commandProxy" not found

I have built a Cordova-based Windows application. As soon as I add any plugin, the app starts crashing with the exception cordova/windows8/commandProxy not found.
Cordova version: 4.3.0
It seems that cordova/windows8/commandProxy is deprecated in Cordova 4.3.0.
I have replaced this statement in plugin file
require("cordova/windows8/commandProxy")
to
require("cordova/exec/proxy")
and it seems to work.
For example I changed line number 18 in PushPluginProxy.js from
require("cordova/windows8/commandProxy").add("PushPlugin", module.exports);
to
require("cordova/exec/proxy").add("PushPlugin", module.exports);
The name in the string varies depending on the plugin.
Alternatively, you can patch the plugin like in this pull request from the AppVersion plugin i.e.:
Change
require("cordova/windows8/commandProxy").add("AppVersion", AppVersionProxy);
to
cordova.commandProxy.add("AppVersion", AppVersionProxy);

Resources