We have developed an application on the dart version 1.4.2 and has a pubspec.yaml following configuration
dependencies:
browser: any
angular: 0.12.0
angular_ui: ">=0.5.1 <0.6.0"
logging: ">=0.9.1+1 <0.10.0"
json_object: any
js: 0.2.2
It is running fine on chrome version 77.0.3865.120, but when I upgrade the chrome version, so dart is not working or not supporting properly.It generates following error in the Web Developer Tool Console.
"NullError: Cannot call "call" on null↵↵STACKTRACE:↵TypeError: Cannot read property 'call' of undefined↵
at qEj.cv.er (https://localhost/xxxx/secure/secure.dart.js:46593:70)↵
at ecJ.$6 https://localhost/xxxx/secure/secure.dart.js:6898:5)↵
at Wan.$1 (https://localhost/xxxx/secure/secure.dart.js:6887:5)↵
at dx.wh (https://localhost/xxxx/secure/secure.dart.js:59133:32)↵
at dx.h2 (https://localhost/xxxx/secure/secure.dart.js:59134:37)↵
at qo.ymM.Ix (https://localhost/xxxx/secure/secure.dart.js:58919:49)↵
at qo.ymM.y6 (https://localhost/xxxx/secure/secure.dart.js:58932:29)↵
at atm.$1 (https://localhost/xxxx/secure/secure.dart.js:5860:10)↵
at dart.bQ (https://localhost/xxxx/secure/secure.dart.js:17363:29)↵
at Gv.Q.aN (https://localhost/xxxx/secure/secure.dart.js:2512:28)"
I am also putting before and after image that how it was on chrome version 77.0.3865.120 and How It was after updating to new chrome version.
Before
After Update to new chrome version
You can see that translation is not working any more on the webpage and It is appearing as it is, we have in the code.
Related
I had Dart SDK with version 2.16 installed and worked fine on my machine.
I tried to install the Dart with version 3 which is currently in development (3.0.0-0.0.dev), so in order to try it, I replaced the path of the Dart sdk in the environment variables with the path of the new dart with version 3, Then I created a new project on VScode, and this showed up:
Here I am writing code with the Records feature ( Which exists only in that Dart 3 dev version), and this error shows up:
This requires the 'records' language feature to be enabled.
Try updating your pubspec.yaml to set the minimum SDK constraint to 3.0.0 or higher, and running 'pub get'.
But on my pubspec.yaml:
environment:
sdk: '>=3.0.0-0.0.dev <3.0.0'
but that error is thrown, and I have no idea what cause it and how I can fix it and run the code successfully.
Thank you.
dI am trying to get back into Dart programming after a year of break. When I last used Dart I use the DartEditor, which has since been deprecated. Now, I am trying to use WebStorm, and Dartium to run the standard dart project templates.
When I build the Uber Simple Web Application, I can get Webstorm to start the Dartium browser and display the page, but I cannot get it to stop at a breakpoint. When I build the Polymer Web Application, WebStorm starts the Dartium browser, but never displays the page - the request is made but nothing happens!
I can open the projects with a standard browser without an issue.
I have installed the JetBrains IDE Support plugin.
Dartium version: 45.0.2454.104
Webstorm version: 2016.1.1 bld 145.597
Dart version: 1.16.0
There is currently an issue in WebStorm that breaks showing applications in Dartium related to caching. The pub serve window in WebStorm should show on which port your application is served. if you open the URL in Dartium using this port
http://localhost:thePort/index.html
then it should work.
An update containing a fix for this issue was announced for this week.
WebStorm 2016.1.2 and IntelliJ IDEA 2016.1.2 official releases are published now, all known problems regarding SDK 1.16 are fixed there.
Is just nor working, it Works if I run the proyect as JavaScript but not if a run it on Dartium, I removed all the extensions from Chrome, I reinstalled Dart and I still have the same problem.
Edit: I get this exception in the editor:
ReferenceError: fill most visited is not defined [id=1]
Dart Editor version 1.8.5.release (STABLE)
Dart SDK version 1.8.5
Window 8.1 64
What can I do?
OK I fixed the problem deleting the folder AppData\Local\Google\Chrome, now is working, thanks.
I upgraded Dart Editor today and now the Editor will not activate.
Instead I receive the following error in the "Tools Output" window:
"pub list-package-dirs failed: exit code 1"
None of the below actions has resolved this issue:
- Deleting and reinstalling Dart Editor and Dartium
- Running pub cache repair from command line,
- Manually deleting package cache directory and running pub get again.
I appreciate any advise on this.
My Dart Editor is version 1.8.3.release (STABLE)
Dart SDK version 1.8.3
Pubspec.yaml contents:
name: mpower
description: Sample app built with the polymer.dart package
environment:
sdk: '>=1.2.0 <2.0.0'
dependencies:
polymer: '>=0.15.1 <0.16.0'
dev_dependencies:
unittest: '>=0.10.0 <0.11.0'
transformers:
- polymer:
entry_points:
- web/index.html
Result of pub-list-package-dirs from Command Line:
{"packages":{"mpower":"C:\Users\jfontana\dart\mpower\lib","browser":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\browser-0.10.0+2\lib","matcher":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\matcher-0.10.1+1\lib","utf":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\utf-0.9.0+1\lib","source_span":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\source_span-1.0.0\lib","web_components":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\web_components-0.9.0\lib","string_scanner":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\string_scanner-0.1.2\lib","source_maps":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\source_maps-0.10.0\lib","mock":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\mock-0.10.0+1\lib","watcher":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\watcher-0.9.3\lib","args":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\args-0.12.1\lib","collection":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\collection-1.1.0\lib","barback":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\barback-0.15.0+1\lib","code_transformers":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\code_transformers-0.2.3+1\lib","csslib":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\csslib-0.11.0+2\lib","pool":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\pool-1.0.1\lib","polymer":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\polymer-0.15.1+3\lib","template_binding":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\template_binding-0.13.1\lib","smoke":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\smoke-0.2.1+1\lib","stack_trace":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\stack_trace-0.9.3+2\lib","html5lib":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\html5lib-0.12.0\lib","path":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path-1.3.0\lib","observe":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\observe-0.12.1+1\lib","logging":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\logging-0.9.2\lib","yaml":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\yaml-2.0.1+1\lib","unittest":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\unittest-0.10.1+2\lib","analyzer":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\analyzer-0.22.4\lib","polymer_expressions":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\polymer_expressions-0.13.0\lib"},"input_files":["C:\Users\jfontana\dart\mpower\pubspec.lock","C:\Users\jfontana\dart\mpower\pubspec.yaml"]}
My OS is Windows 8.1
Java Version "1.8.0_25"
Java SE Runtime Environment (build 1.80_25-b18)
Java Hotspot 64-bit Server VM (build 25.25-b02, mixed mode)
Dart Editor version 1.8.3.release (STABLE)
Dart SDK version 1.8.3
I installed Dart by downloading darteditor-windows-x64.zip
and extracting contents into C:\Dart folder
I had some trouble to display my project in FF cause of shadow_dom. I read that the shadow_dom package is deprecated so I followed the steps in http://pub.dartlang.org/packages/web_components and added web_components to my project.
Now I can build and run my project in FF. However when I include packages/web_components/platform.js and run my project in dartium it displays without css whereever I use shadow_dom. I also get the following error :
ShadowDOMPolyfill polyfill was loaded in Dartium. This will not work.
This indicates that Dartium's Chrome version is not compatible with
this version of web_components.
How to solve this ?