Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

fix(create-graphback): update import format #2267

Merged

Conversation

namit-chandwani
Copy link
Member

The following error causes the create-graphback package to break:

TypeError: request_1.default is not a function
    at /home/namit/.npm/_npx/110767/lib/node_modules/create-graphback/dist/init/starterTemplates.js:140:30
    at new Promise (<anonymous>)
    at /home/namit/.npm/_npx/110767/lib/node_modules/create-graphback/dist/init/starterTemplates.js:139:15
    at Generator.next (<anonymous>)
    at /home/namit/.npm/_npx/110767/lib/node_modules/create-graphback/node_modules/tslib/tslib.js:115:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/home/namit/.npm/_npx/110767/lib/node_modules/create-graphback/node_modules/tslib/tslib.js:111:16)
    at downloadRepository (/home/namit/.npm/_npx/110767/lib/node_modules/create-graphback/dist/init/starterTemplates.js:133:20)
    at Object.<anonymous> (/home/namit/.npm/_npx/110767/lib/node_modules/create-graphback/dist/init/starterTemplates.js:180:32)
    at Generator.next (<anonymous>)

This PR fixes the error by updating the import format of a package in the starterTemplates.ts file.

Types of changes

What types of changes does your code introduce to Graphback?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)
  • Other (please specify)

Checklist

  • I have read the CONTRIBUTING document.
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Verification

Further comments

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

Successfully merging this pull request may close these issues.

2 participants