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

fix npm dependencies issues #756

Merged
merged 1 commit into from
Jun 11, 2023
Merged

Conversation

qazxcdswe123
Copy link
Contributor

unist-util-visit is src/utils/mdast.ts and @jest/types is need for jest

I'm not sure this is intentional or by accident, but I need this two dependencies to work.

Not sure if this is needed. Feel free to close it.

unist-util-visit is src/utils/mdast.ts and @jest/types is need for jest
@@ -63,6 +64,7 @@
"micromark-util-combine-extensions": "^1.0.0",
"moment-parseformat": "^4.0.0",
"quick-lru": "^6.1.1",
"ts-dedent": "^2.2.0"
"ts-dedent": "^2.2.0",
"unist-util-visit": "^4.1.2"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should already be included by another package. I say that because it has run just fine up until now. I do not mind adding it, but I am not sure why we would need to add it now.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be that these changes were somehow included globally for me and that is why they work for me. But they seem to work in main.js for the plugin. Could you let us know what editor you used @qazxcdswe123 that needed these npm packages to work?

Typically I use VSCode or NeoVim. So it could be that one of them already accounted for the discrepancy in dependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I get after removing this two dependencies, the build/test can't be run.

I use neovim and the lsp also compliant about the import.

image image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. It should be fine to merge this then. My node modules locally must have kept those values somehow.

Copy link
Contributor Author

@qazxcdswe123 qazxcdswe123 Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind I forget to copy the css file

BTW, mayble a different version of this dependency is needed since the UI somehow broke for me 😢 . Don't know if it is related to this but the UI looks like this, the button and search wont work.

image

I also tried some other version the UI is somehow still broken

@pjkaufman pjkaufman merged commit 630c26c into platers:master Jun 11, 2023
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.

2 participants