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

HTML tag <kbd> causes error #2

Open
klequis opened this issue Jul 29, 2023 · 2 comments
Open

HTML tag <kbd> causes error #2

klequis opened this issue Jul 29, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@klequis
Copy link
Owner

klequis commented Jul 29, 2023

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Put this text in an mdx file

Exit the Mongo Shell by pressing <kbd>ctrl+c</kbd>

Compile and try to open the post with the above text.

Expected behavior
Should display text as expected

Screenshots

wait  - compiling /_error (client and server)...
event - compiled client and server successfully in 60 ms (420 modules)
error - Error: Build failed with 1 error:
_mdx_bundler_entry_point-f61db0b3-dcac-44a9-ade1-42c3092a7be0.mdx:0:0: error: [plugin: esbuild-xdm] Expected a closing tag for `</kbd>` (59:5-59:9)
 > _mdx_bundler_entry_point-934f6a9a-b561-4167-897a-bc929ad192c2.mdx:0:0: error: [plugin: esbuild-xdm] Expected a closing tag for `</kbd>` (59:5-59:9)
    0 │ ---
      ╵ ^

error - Error: Build failed with 1 error:
_mdx_bundler_entry_point-934f6a9a-b561-4167-897a-bc929ad192c2.mdx:0:0: error: [plugin: esbuild-xdm] Expected a closing tag for `</kbd>` (59:5-59:9)
@klequis klequis added the bug Something isn't working label Jul 29, 2023
@klequis
Copy link
Owner Author

klequis commented Jul 29, 2023

This is likely the issue: doczjs/docz#1691 and appears to have been fixed.

Updating esbuild from 0.13.13 (very unlucky) to 0.18.17 created a package conflict :(

Running npm audit fix --force did not fix the problem but now have a compile time error instead of run time.

npm update failed. Roll back esbuild to 0.13.13

run npm update

added 130 packages, removed 252 packages, changed 439 packages, and audited 1101 packages in 28s

When running with npm run dev get

(1:1) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.

Original problem still not solved.

@klequis
Copy link
Owner Author

klequis commented Jul 30, 2023

Fix is to not use HTML tags for now.

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

1 participant