Skip to content
This repository was archived by the owner on Aug 23, 2021. It is now read-only.
This repository was archived by the owner on Aug 23, 2021. It is now read-only.

Uncaught TypeError: Callback must be a function. Received undefined #4

@abennani15

Description

@abennani15

[Enter steps to reproduce:]

  1. Click on create new component
  2. Put component name
  3. Click enter

Atom: 1.54.0 x64
Electron: 6.1.12
OS: Mac OS X 10.15.5
Thrown From: generate-react-component package 0.2.0

Stack Trace

Uncaught TypeError: Callback must be a function. Received undefined

At fs.js:142

TypeError [ERR_INVALID_CALLBACK] [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
    at maybeCallback (fs.js:142:9)
    at Object.appendFile (fs.js:1229:14)
    at /packages/generate-react-component/lib/generate-react-component.js:158:20
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)

Commands

     -0:38.8.0 generate-react-component:component (span.name.icon.icon-file-directory)
     -0:33.6.0 core:confirm (input.hidden-input)
     -0:31.4.0 editor:consolidate-selections (input.hidden-input)
     -0:31.4.0 core:cancel (input.hidden-input)
     -0:17.2.0 tree-view:remove (span.name.icon.icon-file-directory)
     -0:11.4.0 generate-react-component:component (span.name.icon.icon-file-directory)
     -0:04.1.0 core:confirm (input.hidden-input)

Non-Core Packages

generate-react-component 0.2.0 
react 0.18.0 
terminal-tab 0.6.0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions