srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
102 stars 53 forks source link

Error: Getter not found: 'HttpRequest' after adding 0.8.0 version #116

Closed laksh97 closed 2 years ago

laksh97 commented 2 years ago

flutter/.pub-cache/hosted/pub.dartlang.org/timezone-0.8.0/lib/browser.dart:47:10: Error: Getter not found: 'HttpRequest'. return HttpRequest.request(path, ^^^^^^^^^^^ Unhandled exception: FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file: and data: URIs)

0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)

1 asFileUri (package:vm/kernel_front_end.dart:614:37)

2 writeDepfile (package:vm/kernel_front_end.dart:754:21)

#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:570:9) #4 starter (package:flutter_frontend_server/server.dart:85:12) Please help.
laksh97 commented 2 years ago

The issue has been resolved. Please check that the below file is imported for the package.

import 'package:timezone/data/latest.dart' as tz;