Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on create page #245

Open
JaydeepSinroja opened this issue Feb 9, 2024 · 1 comment
Open

Error on create page #245

JaydeepSinroja opened this issue Feb 9, 2024 · 1 comment

Comments

@JaydeepSinroja
Copy link

when i try to create page than error occured and after that says, "The page [page_name] already exists" but actually there is no page on that name

Unhandled exception:
type 'String' is not a subtype of type 'Map<dynamic, dynamic>' in type cast
#0 PubspecUtils._extraFolder. (package:get_cli/common/utils/pubspec/pubspec_utils.dart:46:32)
#1 _PubValue.value (package:get_cli/common/utils/pubspec/pubspec_utils.dart:172:26)
#2 PubspecUtils.extraFolder (package:get_cli/common/utils/pubspec/pubspec_utils.dart:57:48)
#3 CreatePageCommand._writeFiles (package:get_cli/commands/impl/create/page/page.dart:80:36)
#4 CreatePageCommand.checkForAlreadyExists (package:get_cli/commands/impl/create/page/page.dart:74:7)
#5 CreatePageCommand.execute (package:get_cli/commands/impl/create/page/page.dart:38:5)
#6 main (file:///C:/Users/appit/AppData/Local/Pub/Cache/git/get_cli-0cbdef3d191a49f371315fb6ab899e32dfc64358/bin/get.dart:18:23)
#7 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:33)
#8 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

  1. Yes!
  2. No
  3. I want to rename
    The page [page_name] already exists, do you want to overwrite it? [1]
    Unhandled exception:
    type 'String' is not a subtype of type 'Map<dynamic, dynamic>' in type cast
    #0 PubspecUtils._extraFolder. (package:get_cli/common/utils/pubspec/pubspec_utils.dart:46:32)
    Install e update implemented #1 _PubValue.value (package:get_cli/common/utils/pubspec/pubspec_utils.dart:172:26)
    Allow setting custom package when using get create project command #2 PubspecUtils.extraFolder (package:get_cli/common/utils/pubspec/pubspec_utils.dart:57:48)
    Ask whether or not you want to replace existing files when using a command. #3 CreatePageCommand._writeFiles (package:get_cli/commands/impl/create/page/page.dart:80:36)
    Fix Readme #4 CreatePageCommand.checkForAlreadyExists (package:get_cli/commands/impl/create/page/page.dart:64:9)
    Several improvements for style and english texts. #5 CreatePageCommand.execute (package:get_cli/commands/impl/create/page/page.dart:38:5)
    Localization generator request #6 main (file:///C:/Users/appit/AppData/Local/Pub/Cache/git/get_cli-0cbdef3d191a49f371315fb6ab899e32dfc64358/bin/get.dart:18:23)
    Localization generator feature #7 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:33)
    added generate localization to readme #8 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
@JaydeepSinroja
Copy link
Author

when i remove
get_cli:
sub_folder:false
than it's work fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant