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

Reference to undeclared dependency 'figures' #63

Open
leviwolfe opened this issue Jun 2, 2021 · 0 comments
Open

Reference to undeclared dependency 'figures' #63

leviwolfe opened this issue Jun 2, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@leviwolfe
Copy link

I was attempting to use fauna-schema-migrate with pnpm via:

pnpm add -D fauna-schema-migrate

and received the following error when running:

Error: Cannot find module 'figures'
Require stack:
<truncated>\fauna-schema-migrate\dist\interactive-shell\components\select-indicator.js
<truncated>\fauna-schema-migrate\dist\interactive-shell\components\select-input.js
<truncated>\fauna-schema-migrate\dist\interactive-shell\components\menu.js
<truncated>\fauna-schema-migrate\dist\interactive-shell\components\shell.js
<truncated>\fauna-schema-migrate\dist\interactive-shell\interactive-shell.js
<truncated>\fauna-schema-migrate\dist\cli.js

It appears select-indicator.tsx has a line: import * as figures from 'figures' however 'figures' does not appear in the package.json dependencies. This is likely showing up for me due to pnpm's unique node_module structure and installing 'figures' in my own project (via pnpm add -D figures) does seem to be a viable workaround if anyone else sees this.

I would suggest declaring 'figures' a dependency in package.json to safeguard in case you remove the package that is actually including 'figures' or if that package drops 'figures' from its dependencies.

@rts-rob rts-rob self-assigned this Aug 31, 2021
@rts-rob rts-rob added the bug Something isn't working label Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants