jonataslaw / jonataslaw/get_cli

cannot create child page on module (windows) - NoSuchMethodError: The getter 'path' was called on null.

Open
#64 20 comments 4 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
654
Forks
193
PR merge metrics
No merged PRs in 30d

Description

I want to create a child page on the parent page:
`get create page:takeaway_checkout on takeaway`

But it created only empty folder with error message:

```
✖ + Folder .\lib\app\modules\takeaway\takeaway_checkout not found

Unhandled exception:
NoSuchMethodError: The getter 'path' was called on null.
Receiver: null
Tried calling: path
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
#1 Structure.model (package:get_cli/core/structure.dart:68:20)
#2 handleFileCreate (package:get_cli/functions/create/create_single_file.dart:20:31)
#3 CreatePageCommand._writeFiles (package:get_cli/commands/impl/create/page/page.dart:76:26)
#4 CreatePageCommand.checkForAlreadyExists (package:get_cli/commands/impl/create/page/page.dart:69:7)
#5 CreatePageCommand.execute (package:get_cli/commands/impl/create/page/page.dart:33:5)
#6 main (file:///C:/Users/AKbalthom/AppData/Local/Pub/Cache/git/get_cli-c27ea6d11ec0efcd1c9f72ab3726467268ec0855/bin/get.dart:18:
23)
#7 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281:32)
#8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

The page [takeaway_checkout] already exists, do you want to overwrite it?

1) Yes!
2) No
3) I want to rename
```

Even I chose option 1(yes), it still creates an empty folder only.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.