Skip to content

Conversation

@ConnorBerghoffer
Copy link

Fixed 'Invalid hook call' error from npx. Multiple React copies were breaking hooks.

Moved React to peerDependencies instead of bundling it, added tsup config to externalise deps, and bumped ink to v5. Now only one React instance at runtime.

Fixes: 'Invalid hook call' error in useSpinner/@inkjs/ui

Fixed 'Invalid hook call' error from npx. Multiple React copies were breaking hooks.

Moved React to peerDependencies instead of bundling it, added tsup config to externalise deps, and bumped ink to v5. Now only one React instance at runtime.

Fixes: 'Invalid hook call' error in useSpinner/@inkjs/ui
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

Successfully merging this pull request may close these issues.

1 participant