Integration with vue and vitepress
See original GitHub issueHello mrin9,
I am playing with vitepress and trying to have rapidoc v9.3.3 embedded. It worked out great when running in dev mode with hot reloads, but when I tried to do a build, it gave:
build error:
ReferenceError: self is not defined
at /home/vitepress_test/node_modules/.pnpm/rapidoc@9.3.3/node_modules/rapidoc/dist/rapidoc-min.js:3788:57478
at /home/vitepress_test/node_modules/.pnpm/rapidoc@9.3.3/node_modules/rapidoc/dist/rapidoc-min.js:3788:58207
at Object.<anonymous> (/home/vitepress_test/node_modules/.pnpm/rapidoc@9.3.3/node_modules/rapidoc/dist/rapidoc-min.js:3788:58218)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
at async Loader.import (internal/modules/esm/loader.js:178:24)
ELIFECYCLE Command failed with exit code 1.
I tried to search (and I am actually new to every aspects) on the net and nothing actually worked. I was wondering if there is any tips you can give? Thanks so much in advance.
Best regards,
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
Using Vue in Markdown - VitePress
In VitePress, each markdown file is compiled into HTML and then processed as a Vue Single-File Component. This means you can use any...
Read more >Next steps for VitePress · Discussion #548 - GitHub
I have a feature request on integrating VitePress into an existing (Vue) Vite project with access to all its (generated) resources. I'm new...
Read more >VitePress Tutorial With Vue.js 3: The New Vite Static ... - Morioh
Vitepress is the latest Static Site Generator based off of Vite + Vuepress. ... Due to its ease of integration, Vue.js is becoming...
Read more >Vitepress - npm.io
vitepress. Vite & Vue powered static site generator ... SideBar Generator for vuepress-next and vitepress ... Vite specific framework integration helpers.
Read more >Configuring TailwindCSS to work with Vitepress
1. Import TailwindCSS through their CDN: Edit your config file at .vitepress/config.js and add the following. js
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To whom it may concern, I just want to leave some notes if there is anyone when may have found helpful. Thanks to @bertrandk and @mrin9 tips, below are what I have done and using vitepress it now builds and works properly:
api_service.vue
api_service.md
index.md
if any one needs more detailed information, leave me a message and I will try to help as I can. Thanks.
@bertrandk thank you very much, I will study more on ClientOnly.