The msix:create command failed with the error below.
flutter pub run msix:create
```
$> flutter pub run msix:create
Failed to build msix:create:
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:14:48: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
String get emphasized => '${Ansi(true).bold}$this${Ansi(true).none}';
^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:15:44: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
String get green => '${Ansi(true).green}$this${Ansi(true).none}';
^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:16:42: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
String get blue => '${Ansi(true).blue}$this${Ansi(true).none}';
^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:17:40: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
String get red => '${Ansi(true).red}$this${Ansi(true).none}';
^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:18:42: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
String get gray => '${Ansi(true).gray}$this${Ansi(true).none}';
^^^^
pub finished with exit code 1
```
:scroll: Pubspec.yaml
We ask that you include your pubspec.yaml file as a common problem we have seen has been the pubspec.yaml file being incorrect
Flutter doctor
```
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.22621.1265], locale en-US)
• Flutter version 3.3.10 on channel stable at C:\Users\jbroe\Documents\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 135454af32 (10 weeks ago), 2022-12-15 07:36:55 -0800
• Engine revision 3316dd8728
• Dart version 2.18.6
• DevTools version 2.15.0
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at C:\Users\jbroe\AppData\Local\Android\sdk
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.2)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.4.33122.133
• Windows 10 SDK version 10.0.22000.0
[√] Android Studio (version 2021.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
[√] IntelliJ IDEA Ultimate Edition (version 2022.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.1
• Flutter plugin version 72.1.4
• Dart plugin version 223.8617.8
[√] VS Code (version 1.75.1)
• VS Code at C:\Users\jbroe\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.56.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.1265]
• Chrome (web) • chrome • web-javascript • Google Chrome 110.0.5481.96
• Edge (web) • edge • web-javascript • Microsoft Edge 109.0.1518.61
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
```
:information_source: Info
Version:
v3.8.1
:speech_balloon: Description
The msix:create command failed with the error below.
flutter pub run msix:create
``` $> flutter pub run msix:create Failed to build msix:create: ../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:14:48: Error: The getter 'this' isn't defined for the class 'String'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'. String get emphasized => '${Ansi(true).bold}$this${Ansi(true).none}'; ^^^^ ../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:15:44: Error: The getter 'this' isn't defined for the class 'String'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'. String get green => '${Ansi(true).green}$this${Ansi(true).none}'; ^^^^ ../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:16:42: Error: The getter 'this' isn't defined for the class 'String'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'. String get blue => '${Ansi(true).blue}$this${Ansi(true).none}'; ^^^^ ../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:17:40: Error: The getter 'this' isn't defined for the class 'String'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'. String get red => '${Ansi(true).red}$this${Ansi(true).none}'; ^^^^ ../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:18:42: Error: The getter 'this' isn't defined for the class 'String'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'. String get gray => '${Ansi(true).gray}$this${Ansi(true).none}'; ^^^^ pub finished with exit code 1 ```:scroll: Pubspec.yaml
We ask that you include your pubspec.yaml file as a common problem we have seen has been the pubspec.yaml file being incorrect
:scroll: Flutter doctor
Flutter doctor
``` [√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.22621.1265], locale en-US) • Flutter version 3.3.10 on channel stable at C:\Users\jbroe\Documents\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 135454af32 (10 weeks ago), 2022-12-15 07:36:55 -0800 • Engine revision 3316dd8728 • Dart version 2.18.6 • DevTools version 2.15.0 [√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) • Android SDK at C:\Users\jbroe\AppData\Local\Android\sdk • Platform android-32, build-tools 32.1.0-rc1 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.2) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.4.33122.133 • Windows 10 SDK version 10.0.22000.0 [√] Android Studio (version 2021.1) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822) [√] IntelliJ IDEA Ultimate Edition (version 2022.3) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.1 • Flutter plugin version 72.1.4 • Dart plugin version 223.8617.8 [√] VS Code (version 1.75.1) • VS Code at C:\Users\jbroe\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.56.0 [√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.1265] • Chrome (web) • chrome • web-javascript • Google Chrome 110.0.5481.96 • Edge (web) • edge • web-javascript • Microsoft Edge 109.0.1518.61 [√] HTTP Host Availability • All required HTTP hosts are available • No issues found! ```