Vaadin and Node.js version - vaadin

What is the minimum version for latest Vaadin Flow(23.3.1)?
On the host where jenkins is located, the old operating system and running node -v results is:
Error: Package: 2:nodejs-18.12.1-1nodesource.x86_64 (nodesource)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: 2:nodejs-18.12.1-1nodesource.x86_64 (nodesource)
Requires: libm.so.6(GLIBC_2.27)(64bit)
Error: Package: 2:nodejs-18.12.1-1nodesource.x86_64 (nodesource)
Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
Error: Package: 2:nodejs-18.12.1-1nodesource.x86_64 (nodesource)
Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: 2:nodejs-18.12.1-1nodesource.x86_64 (nodesource)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Is it possible to stay on version 16x?
Thanks

For Vaadin 23.3, the minimum Node version is 16.14. You can find this information from the Vaadin Platform release notes; in the case of 23.3, here: https://github.com/vaadin/platform/releases/tag/23.0.0. The release notes also list other supported technologies, such as browser versions.

Related

Sentry on React Native: Building for iOS breaks with "property 'options' not found on object of type 'PrivateSentrySDKOnly'"

I am using CircleCI to build for iOS (and Android) and recently, the iOS build fails with these error messages:
Compiling RNSentry.m
❌ /Users/distiller/project/node_modules/#sentry/react-native/ios/RNSentry.m:107:79: property 'options' not found on object of type 'PrivateSentrySDKOnly'
if (appIsActive && !sentHybridSdkDidBecomeActive && (PrivateSentrySDKOnly.options.enableAutoSessionTracking || PrivateSentrySDKOnly.options.enableOutOfMemoryTracking)) {
^
❌ /Users/distiller/project/node_modules/#sentry/react-native/ios/RNSentry.m:107:137: property 'options' not found on object of type 'PrivateSentrySDKOnly'
if (appIsActive && !sentHybridSdkDidBecomeActive && (PrivateSentrySDKOnly.options.enableAutoSessionTracking || PrivateSentrySDKOnly.options.enableOutOfMemoryTracking)) {
^
❌ /Users/distiller/project/node_modules/#sentry/react-native/ios/RNSentry.m:155:39: property 'getSdkName' not found on object of type 'PrivateSentrySDKOnly'
#"name": PrivateSentrySDKOnly.getSdkName,
^
❌ /Users/distiller/project/node_modules/#sentry/react-native/ios/RNSentry.m:195:34: property 'options' not found on object of type 'PrivateSentrySDKOnly'
if (PrivateSentrySDKOnly.options.debug
It has once worked to build for iOS, and I think this has something to do with the version of Sentry; I think I tried to update the Sentry version to 4.9.0, only to find that 4.9.0 has some serious issues (I think). I am not smart enough to dechiffer exactly what the conclusions here are, but I think it relates:
https://github.com/getsentry/sentry-cocoa/issues/1665
https://github.com/getsentry/sentry-react-native/issues/2530
(I was looking for another URL that related, but cant find now)
Android works to build with the configs and whatnot, but iOS fails. I am not sure what do to do resolve this, and I would like some input =)
the package.json has Sentry 4.8.0:
"dependencies": {
"#react-native-async-storage/async-storage": "^1.17.4",
"#react-native-community/cli-platform-android": "^6.3.0",
"#sentry/react-native": "4.8.0",
"#turf/distance": "^6.0.1",
"axios": "^1.1.1",
"dotenv": "^16.0.0",
"eventing-bus": "^2.0.1",
"jetifier": "^2.0.0",
"lodash": "^4.17.15",
"moment": "^2.29.3",
"moment-timezone": "^0.5.34",
"patch-package": "^6.4.7",
"react": "17.0.2",
"react-native": "0.67.4",
Here is the rest of my config/setup:
PS C:\Github\alfaonlinev3> npx react-native doctor
Common
✓ Node.js
✓ yarn
Android
✓ JDK
✖ Android Studio - Required for building and installing your app on Android
✓ Android SDK - Required for building and installing your app on Android
✓ ANDROID_HOME
Errors: 1
Warnings: 0
Note: I have Android Studio installed, and it is working for Android native project. No idea why doctor complains or how to resolve it, other than downloading another copy of Android studio?
envinfo:
Visual Studio code: 1.73.1
System:
OS: Windows 10 10.0.19044
CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
Memory: 5.01 GB / 31.95 GB
Binaries:
Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
Managers:
pip2: 19.2.3 - C:\Python27\Scripts\pip2.EXE
pip3: 21.1.1 - C:\Python39\Scripts\pip3.EXE
Utilities:
Git: 2.34.1.
SDKs:
Android SDK:
API Levels: 28, 29, 30, 31, 33
Build Tools: 28.0.3, 29.0.0, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
IDEs:
VSCode: 1.73.1 - C:\Program Files\Microsoft VS Code\bin\code.CMD
Visual Studio: 17.3.32519.111 (Visual Studio Community 2022), 16.11.32106.194 (Visual Studio Community 2019)
Languages:
Java: 19.0.1
Python: 3.9.5
Databases:
SQLite: 3.32.2 - C:\Users\wagge\AppData\Local\Android\Sdk\platform-tools\sqlite3.EXE
Browsers:
Chrome: 107.0.5304.121
Edge: Spartan (44.19041.1266.0), Chromium (107.0.1418.56)
Internet Explorer: 11.0.19041.1566
IDEs:
Android Studio: Not Found
Visual Studio: 17.3.32519.111 (Visual Studio Community 2022), 16.11.32106.194 (Visual Studio Community 2019)
Languages:
Java: 19.0.1
npmPackages:
#react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.4 => 0.67.4
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found
UPDATE
I ran npm-update, it suggested updating sentry to 4.10.1. After that was done, I see this change in package.json:
also yarn.lock
but still, the builds fails with the same error.
UPDATE 2
I check podfile.* and I see stuff like:
podfile.lock:
- RNSentry (3.4.2):
- React-Core
- Sentry (= 7.11.0)
- RNSnackbar (2.4.0):
- React-Core
- RNSVG (9.13.6):
- React
- Sentry (7.11.0):
- Sentry/Core (= 7.11.0)
- Sentry/Core (7.11.0)
The file podfile does not contain "sentry" at all.
Looks like it is your problem:
https://github.com/getsentry/sentry-react-native/pull/2599/files
Try to upgrade react native sentry to 4.10.1
From your podfile.lock it looks like you have an old version of the RNSentry pod installed.
- RNSentry (3.4.2):
Try to run the following:
cd ios
pod update RNSentry
The RNSentry must be the same version as #sentry/react-native. So in your case it should've been 4.10.1.

Error: The non-abstract class 'ChromeProxyService' is missing implementations for these members:

I did a pub build this morning and all of a sudden, something that was compiling fine yesterday, with no changes today, is breaking.
Failed to precompile webdev:webdev:
../../../.pub-cache/hosted/pub.dartlang.org/dwds-3.1.3/lib/src/services/chrome_proxy_service.dart:40:7: Error: The non-abstract class 'ChromeProxyService' is missing implementations for these members:
- VmServiceInterface.getSupportedProtocols
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class ChromeProxyService implements VmServiceInterface {
^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/vm_service-4.1.0/lib/src/vm_service.dart:745:24: Context: 'VmServiceInterface.getSupportedProtocols' is defined here.
Future<ProtocolList> getSupportedProtocols();
^^^^^^^^^^^^^^^^^^^^^
Precompiling executables... (1.9s)
I've done a cache repair, another get to see if there are newer versions, I've done an upgrade just to be sure, but as soon as I hit activate webdev, I get the above error.
~/Code/dart-sdk-2.8.4/bin/pub cache repair
~/Code/dart-sdk-2.8.4/bin/pub get
~/Code/dart-sdk-2.8.4/bin/pub upgrade
~/Code/dart-sdk-2.8.4/bin/pub global activate webdev
~/Code/dart-sdk-2.8.4/bin/pub global run webdev build --verbose --output=web:build -- --delete-conflicting-outputs || exit
This is my pubspec.yaml, not much in there
name: blah
version: 0.0.0
description: Blah
environment:
sdk: ">=2.8.0 <3.0.0"
dev_dependencies:
build_runner: ^1.10.0
build_test: ^0.10.2
build_web_compilers: ^2.11.0
test: ^1.0.0
And I'm on Dart 2.8.4 (getting the same on other versions of Dart, so not sure if the Dart version has an effect)
Any ideas?
Seems like there's a temp workaround
pub global activate webdev 2.5.6
https://github.com/dart-lang/webdev/issues/1036
https://github.com/dart-lang/webdev/issues/1037

Can't load Kernel binary (Dart SDK dev.69.4)

I’m so sorry, but ... this time too I have a problem after updating the Dart SDK.
My pubspec.yaml file is:
environment:
sdk: '>=2.0.0-dev.69.4 <2.0.0'
dependencies:
sass_builder: ^2.1.1
angular: ^5.0.0-beta+2
angular_components: ^0.9.0-beta+2
angular_forms: ^2.0.0-beta+2
angular_router: ^2.0.0-alpha+17
js: ^0.6.1+1
path: ^1.6.2
dev_dependencies:
angular_test: ^2.0.0-beta+2
build_runner: ^0.9.2
build_test: ^0.10.3+1
build_web_compilers: ^0.4.1
test: ^1.3.0
I runned pub global activate webdev and pub upgrade commands. After this, I runned webdev serve, but I received the following error message:
Can't load Kernel binary: File size is too small to a valid kernel file.
webdev failed with an unexpected exception.
Unable to spawn isolate: Error while initializing Kernel isolate
How can I solve this issue?
It is likely that for the next update I will wait for the stable version of the Dart SDK.
I have the same problem, you can use "pub run build_runner serve" as workaround.

Is AngularDart 4 compatible with Dart 2 & build_runner 0.8?

Currently on
Dart VM version: 2.0.0-dev.49.0
angular ^4.0.0
Linux
Dartium
One of the upgrade requirement for Dart 2 upgrade # https://webdev-dartlang-org-dev.firebaseapp.com/dart-2 is to use build_runner 0.8 which from the error code is not compatible with Angular4.
My pubspec.yaml looks like
name: JRapha
description: A web app that uses AngularDart Components
version: 0.0.1
environment:
sdk: '>=2.0.0-dev.49.0 <2.0.0'
dependencies:
angular: ^4.0.0
dev_dependencies:
angular_test: ^1.0.0
test: ^0.12.30
build_runner: ^0.8.2
build_test: ^0.10.1
build_web_compilers: ^0.3.6
web:
compiler:
debug: dartdevc
The Error when running pub get
Because angular_compiler >=0.2.1 <0.3.0+1 depends on build ^0.10.0 and no versions of angular_compiler match >0.3.0+1 <0.4.0, angular_compiler >=0.2.1 <0.3.0+1 or >0.3.0+1 <0.4.0 requires build ^0.10.0.
And because angular >=4.0.0-beta <5.0.0-alpha depends on angular_compiler ^0.3.0, angular >=4.0.0-beta <5.0.0-alpha requires build ^0.10.0 or angular_compiler 0.3.0+1. And because angular_compiler 0.3.0+1 depends on build >=0.10.0 <0.12.0 and build_web_compilers >=0.2.1 depends on build ^0.12.0, angular >=4.0.0-beta <5.0.0-alpha is incompatible with
build_web_compilers >=0.2.1.
So, because JRapha depends on both angular ^4.0.0 and build_web_compilers ^0.3.6, version solving
failed.
Is there a solution to running AngularDart4 with Dart v2?
No, it is not compatible.
Only AngularDart v5 is compatible with Dart2 and build_runner.

Incompatible version constraints on barback:

Dart Editor version 1.10.0.release (STABLE)
Dart SDK version 1.10.0
pubspec.yaml
name: project
description: A sample Polymer application
dependencies:
browser: any
polymer: any
observe: any
bwu_datagrid: any
transformers:
- polymer:
entry_points: web/project.html
Run pub get
--- 19:11:03 Running pub get on C:\Users\Toshiba\Documents\Dart\project ... ---
Pub get failed, [1] Resolving dependencies...
Incompatible version constraints on barback:
- observe 0.9.1+1 depends on version >=0.9.0 <0.11.0
- pub itself depends on version >=0.13.0 <0.15.3
** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **
I can't understand what connection is between observe which i use in my project and pub itself.
Do you have any idea?

Resources