Template parse errors - leafletOptions - ngx-leaflet

I'm trying to follow the example and getting the following error:
ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'leafletOptions' since it isn't a known property of 'div'. ("
<div class="map"
leaflet
[ERROR ->][leafletOptions]="options">
</div>
This is my environment:
Angular CLI: 1.6.5
Node: 6.9.1
OS: linux x64
Angular: 5.2.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
#angular/cdk: 5.1.0
#angular/cli: 1.6.5
#angular/flex-layout: 2.0.0-beta.12
#angular/material: 5.1.0
#angular-devkit/build-optimizer: 0.0.41
#angular-devkit/core: 0.0.28
#angular-devkit/schematics: 0.0.51
#ngtools/json-schema: 1.1.0
#ngtools/webpack: 1.9.5
#schematics/angular: 0.1.16
typescript: 2.5.3
webpack: 3.10.0
I'm assuming this has to be something simple, but this is my first time working with a recent version of angular.

So I found a solution.
I'm trying to create a separate module for my map and needed to add
import { LeafletModule } from '#asymmetrik/ngx-leaflet';
to my map module instead of to my app.component.ts. Hopefully this helps someone out in the future.

Related

module can't find package com.google.gson.stream

a project i'm working with has a dependency on kotlin.jvm.internal.Intrinsics. so i added kotlin-gradle-plugin-1.5.0.jar. now i'm getting an error that it can't find gson.streams. any idea what this is all about?
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: E:\jars\kotlin-gradle-plugin-1.5.0.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Package com.google.gson.stream not found in module
i already have gson-2.8,6.jar in my classpath.
The Jar kotlin-gradle-plugin version 1.5.0 seems to have runtime dependency with com.google.code.gson » gson
you can see that in the Runtime Dependencies section from here
In order to rectify this, you have to add it as a plugin
like below
plugins {
id 'org.jetbrains.kotlin.<...>' version '1.5.0'
}
This is the recommended way from here

Update flutter project to stable null-safety

I'm trying to update my flutter project to flutter stable 2.0.3, but got the error:
Because every version of flutter_driver from sdk depends on webdriver 2.1.2 which depends on archive >=1.0.0 <3.0.0, every version of flutter_driver from sdk requires archive >=1.0.0 <3.0.0.
Does anyone know how to solve this? I tried to import the package webdriver version ^3.0.0, but when trying to run the app, I got the error:
Because every version of flutter_driver from sdk depends on webdriver 2.1.2 and app depends on webdriver ^3.0.0, flutter_driver from sdk is forbidden. So, because app depends on flutter_driver any from sdk, version solving failed. Running "flutter pub get" in app...
pub get failed (1; So, because app depends on flutter_driver any from sdk, version solving failed.)
Here's my pubscpec:
environment:
sdk: ">=2.5.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
auto_size_text: ^2.1.0 #https://pub.dev/packages/auto_size_text
auto_orientation: ^1.0.5 #https://pub.dev/packages/auto_orientation
cached_network_image: ^2.0.0 #https://pub.dartlang.org/packages/cached_network_image#-installing-tab-
carousel_slider: ^1.3.0 #https://github.com/serenader2014/flutter_carousel_slider
connectivity: ^3.0.3 #https://pub.dev/packages/connectivity
cpf_cnpj_validator: ^1.0.5 #https://github.com/leonardocaldas/flutter-cpf-cnpj-validator
dots_indicator: ^1.0.0 #https://pub.dev/packages/dots_indicator
image_picker: ^0.6.0+15 #https://pub.dartlang.org/packages/image_picker
flutter_cache_manager: ^3.0.1 #https://pub.dev/packages/flutter_cache_manager
flutter_full_pdf_viewer: ^1.0.6 #https://pub.dev/packages/flutter_full_pdf_viewer
flutter_local_notifications: ^5.0.0 #https://pub.dev/packages/flutter_local_notifications
flutter_masked_text: ^0.8.0 #https://pub.dartlang.org/packages/flutter_masked_text
flutter_slidable: ^0.5.4 #https://pub.dev/packages/flutter_slidable
flutter_svg: ^0.18.0 #https://pub.dartlang.org/packages/flutter_svg#-installing-tab-
flushbar: ^1.10.2 #https://pub.dev/packages/flushbar
google_maps_flutter: ^0.5.20+6 #https://pub.dev/packages/google_maps_flutter
http: ^0.13.0 #https://pub.dev/packages/http
package_info: ^0.4.0+6 #https://pub.dev/packages/package_info
path_provider: ^2.0.1 #https://pub.dev/packages/path_provider
photo_view: ^0.4.0 #https://pub.dartlang.org/packages/photo_view#-installing-tab-
provider: ^4.0.1 #https://pub.dev/packages/provider
rate_my_app: ^0.7.2 #https://pub.dev/packages/rate_my_app
rxdart: ^0.26.0 #https://pub.dartlang.org/packages/rxdart
sendgrid_mailer: ^0.1.2 #https://pub.dev/packages/sendgrid_mailer
share_extend: ^1.0.9 #https://pub.dev/packages/share_extend
store_redirect: ^1.0.2 #https://pub.dev/packages/store_redirect
url_launcher: ^5.2.5 #https://pub.dev/packages/url_launcher
webdriver: ^3.0.0
# Firebase packages
cloud_firestore: ^1.0.1
firebase_core: ^1.0.1
firebase_auth: ^1.0.1
firebase_analytics: ^7.1.1
cloud_functions: ^1.0.0
firebase_storage: ^8.0.0
firebase_crashlytics: ^1.0.0 #https://pub.dev/packages/firebase_crashlytics
firebase_messaging: ^9.0.0 #https://pub.dev/packages/firebase_messaging
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
dev_dependencies:
test: ^1.5.1
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
pedantic: null
I found a solution, to solve this I had to override the dependecies, like this:
dependency_overrides:
archive: ^3.1.2
crypto: ^3.0.0
xml: ^5.0.2

Watermark module not installing / fatal error - Prestashop 1.6

We tried to install Watermark default module (from github) on Prestashop 1.6.1.23. After trying to install we have some fatal error:
[PrestaShop] Fatal error in module file... ...watermark.php
Call to undefined method Watermark::trans()
How can we resolve this problem?
Module is default, theme default also. PHP version is 7.
Best regards

How to fix : Unsupported Gauge Version(null): This version of Gauge Intellij plugin only works with Gauge version >= 0.9.0

IntelliJ version is 2020.1.2
Gauge pluggin version in intelliJ is 0.3.21
Gauge version: 1.0.7
Commit Hash: ed7b4fd6
Plugins
html-report (4.0.11)
java (0.7.2)
screenshot (0.0.1)
Getting the following error:
java.lang.Throwable: Unable to parse <C:\Program Files\Gauge\bin\gauge.exe --version --machine-readable> command's output.
error: open C:\Program Files\Gauge\bin\plugins: The system cannot find the file specified.
{
"version": "1.0.7",
"commitHash": "ed7b4fd6",
"plugins": []
}
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:146)
at com.thoughtworks.gauge.core.GaugeVersion.getVersion(GaugeVersion.java:44)
at com.thoughtworks.gauge.core.GaugeVersion.<clinit>(GaugeVersion.java:26)
at com.thoughtworks.gauge.GaugeComponent.projectOpened(GaugeComponent.java:30)...
Changed Intellij version to 19.3 release and downloaded external gauge plugin version 0.3.18 which is supported by the IDE to fix the issue.

Import fritzapi (node package) into Ionic project

I am currently trying to use this API in my Ionic project, but man, I have no clue on how to do it. I tried figuring it out using things like this, but I always get errors on ionic server:
101 unchanged chunks
[ng] chunk {home-home-module} home-home-module.js, home-home-module.js.map (home-home-module) 3.07 MB [rendered]
[ng]
[ng] ERROR in ./node_modules/request/lib/har.js
[ng] Module not found: Error: Can't resolve 'fs' in 'D:\Programmierung\Workspaces\Ionic\HomeAutomation\node_modules\request\lib'
[ng] ERROR in ./node_modules/forever-agent/index.js
[ng] Module not found: Error: Can't resolve 'net' in 'D:\Programmierung\Workspaces\Ionic\HomeAutomation\node_modules\forever-agent'
[ng] ERROR in ./node_modules/tough-cookie/lib/cookie.js
[ng] Module not found: Error: Can't resolve 'net' in 'D:\Programmierung\Workspaces\Ionic\HomeAutomation\node_modules\tough-cookie\lib'
[ng] ERROR in ./node_modules/tunnel-agent/index.js
[ng] Module not found: Error: Can't resolve 'net' in 'D:\Programmierung\Workspaces\Ionic\HomeAutomation\node_modules\tunnel-agent'
[ng] ERROR in ./node_modules/forever-agent/index.js
[ng] Module not found: Error: Can't resolve 'tls' in 'D:\Programmierung\Workspaces\Ionic\HomeAutomation\node_modules\forever-agent'
[ng] ERROR in ./node_modules/tunnel-agent/index.js
[ng] Module not found: Error: Can't resolve 'tls' in 'D:\Programmierung\Workspaces\Ionic\HomeAutomation\node_modules\tunnel-agent'
[ng] Time: 2321ms
[ng] i 「wdm」: Failed to compile.
I'm super new to webdev and Ionic in general, so I don't know if this is even possible, but I feel like it should be. Above error is a result of the following code:
import { Component } from '#angular/core';
import * as fritzapi from 'fritzapi';
#Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
constructor() {
fritzapi.getSessionID("removedforstack", "removedforstack").then(function(sid) {
console.log(sid);
});
}
}
Thanks in advance to everyone who's trying to help <3
I suspect this isn't possible. I think that you are trying to use something that's expected to be run on the local network in a node environment.
I did a search and found this article:
https://www.amadousall.com/angular-cli-module-not-found-error-cant-resolve/
Which say they used to do this:
supply an empty module when fs, crypto, tls and net were requested.
Which doesn't make sense really out of context but I couldn't find a simple bit to quote, take a look at the article.
Ultimately the angular team says:
Browser code should not rely on things that are not available in browser environments.
I'm assuming that the library needs to use these things to connect to the local network and interact with your home automation.
If i'm wrong then the article does have a way to supply an empty file instead of those modules, so if the code has alternate modes then it could work, but it doesn't seem likely to me off the top of my head.