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

Error filename with new version of markdown-it-shiki 0.6 #442

Open
5 tasks done
flahol opened this issue Oct 26, 2022 · 1 comment
Open
5 tasks done

Error filename with new version of markdown-it-shiki 0.6 #442

flahol opened this issue Oct 26, 2022 · 1 comment

Comments

@flahol
Copy link

flahol commented Oct 26, 2022

Describe the bug

After updating to version 0.6 of markdown-it-shiki, an error occured when starting dev.

failed to load config from /home/patrice/Websites/obizoo/www.2.obizoo.com/vite.config.ts
error when starting dev server:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received undefined
    at new NodeError (node:internal/errors:377:5)
    at createRequire (node:internal/modules/cjs/loader:1224:11)
    at Function.MarkdownItShiki (/home/patrice/Websites/obizoo/www.2.obizoo.com/node_modules/.pnpm/markdown-it-shiki@0.6.0/node_modules/markdown-it-shiki/dist/index.js:69:54)
    at MarkdownIt.use (/home/patrice/Websites/obizoo/www.2.obizoo.com/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/index.js:497:10)
    at Object.markdownItSetup (/home/patrice/Websites/obizoo/www.2.obizoo.com/vite.config.ts:100:12)
    at createMarkdown (/home/patrice/Websites/obizoo/www.2.obizoo.com/node_modules/.pnpm/vite-plugin-vue-markdown@0.22.1_vite@3.2.0/node_modules/vite-plugin-vue-markdown/dist/index.js:85:11)
    at VitePluginMarkdown (/home/patrice/Websites/obizoo/www.2.obizoo.com/node_modules/.pnpm/vite-plugin-vue-markdown@0.22.1_vite@3.2.0/node_modules/vite-plugin-vue-markdown/dist/index.js:272:25)
    at Object.<anonymous> (/home/patrice/Websites/obizoo/www.2.obizoo.com/vite.config.ts:96:49)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at _require.extensions.<computed> [as .js] (file:///home/patrice/Websites/obizoo/www.2.obizoo.com/node_modules/.pnpm/vite@3.2.0/node_modules/vite/dist/node/chunks/dep-61d2428a.js:65746:24)
 ELIFECYCLE  Command failed with exit code 1.

After downgraded to version ^0.5.0, no error

Reproduction

no

System Info

ubuntu 22.10, ...

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@Codermar
Copy link

Codermar commented Nov 4, 2022

I have the same issue. Any version after 0.5.1 in my case

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

No branches or pull requests

2 participants