code-screeshot icon indicating copy to clipboard operation
code-screeshot copied to clipboard

Wrong Command in documentation (Readme FIle)

Open The3ven opened this issue 5 months ago • 4 comments

$ npm run build && npm run serve

[email protected] build vite build

vite v4.4.9 building for production... transforming (40) src\components\WidthMeasurement.jsxBrowserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme ✓ 368 modules transformed. dist/index.html 0.52 kB │ gzip: 0.32 kB dist/assets/index-deebcf02.css 26.61 kB │ gzip: 5.36 kB dist/assets/index-7a2ccf0b.js 1,292.61 kB │ gzip: 425.52 kB

(!) Some chunks are larger than 500 kBs after minification. Consider:

  • Using dynamic import() to code-split the application
  • Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
  • Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. ✓ built in 20.64s npm error Missing script: "serve" npm error npm error To see a list of scripts, run: npm error npm run npm error A complete log of this run can be found in: C:\Users\Ali\AppData\Local\npm-cache_logs\2025-08-23T08_25_09_015Z-debug-0.log

there is no serve command in package.json

The3ven avatar Aug 23 '25 08:08 The3ven

Update: language section is also not working when i change language without edit/paste code in editor it should show the example code automatically but it didn't right now

The3ven avatar Aug 23 '25 08:08 The3ven

Thanks for pointing it out. The serve script is added in the latest commit.

The language selection is working as expected. It does not modify the content of editor, its only needed when auto-detection does not work. Switching examples through language selection feels counter-intuitive and unnecessary.

nimone avatar Aug 23 '25 16:08 nimone

got it, thank you so much for your reply, im same guy from youtube who ask for api integration, i have reply on same comment on you-tube but my comment got deleted automatically some how, i here to ask same how can we add a api endpoint which take code and config in api param and return me image data

The3ven avatar Aug 25 '25 05:08 The3ven

Since this is completely implemented on the frontend, you may need a different approach if you are planning to make an API out of it. Just research on how to do the same in node maybe checkout node-html-to-image package. Configuration options can come form query params, your main challenge would be rendering the dom. Good luck.

nimone avatar Aug 25 '25 08:08 nimone