Ask Your Question
2

What does the error message "Not found: 'dart:js'" mean while running a flutter app on an iOS simulator?

asked 2022-12-29 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-04 19:00:00 +0000

qstack gravatar image

The error message "Not found: 'dart:js'" means that the Dart compiler is unable to find the 'dart:js' library which is required to run the Flutter app on an iOS simulator. This library is used to interact with JavaScript code in web pages, and it is not available on iOS.

This error can occur if the Flutter code has references to the 'dart:js' library or if a package used in the app requires it.

To fix this error, you will need to remove any references to the 'dart:js' library from your Flutter code and dependencies. You may also need to update your code or dependencies to use alternative libraries that are compatible with iOS.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-12-29 11:00:00 +0000

Seen: 12 times

Last updated: Nov 04 '21