Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

import of dart:mirrors is not supported in the current Dart runtime #28

@ashwini1028

Description

@ashwini1028

I am trying to execute below code:

import 'dart:io';
import 'package:safe_config/safe_config.dart';

class ApplicationConfiguration extends Configuration {
ApplicationConfiguration(String fileName) : super.fromFile(File(fileName));

String password;
}

void main() {
var config = new ApplicationConfiguration("config.yaml");
print("${config.password}");
}

config.yaml is having:

password: pwd123

I am not sure why i am getting import error

import of dart:mirrors is not supported in the current Dart runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions