From 6d4792aada3c7581a86faa3d3922e0b69ef332f5 Mon Sep 17 00:00:00 2001 From: Rudra Bhaskar Date: Wed, 17 Dec 2025 12:10:30 +0530 Subject: [PATCH] fix: resolve dev server build and runtime errors --- docs/.vuepress/config.js | 14 ++++++++++++-- package.json | 11 +++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 5492e58c3..5b8772139 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -23,6 +23,16 @@ module.exports = { hashFunction: "sha256" } }, + chainWebpack: config => { + config.module + .rule('vue') + .use('vue-loader') + .tap(options => { + options.compilerOptions = options.compilerOptions || {} + options.compilerOptions.prettify = false + return options + }) + }, base: '/', head: require('./head'), locales: { @@ -129,7 +139,7 @@ module.exports = { ['/quickstart/pin','Pin (Browser)'], ['/quickstart/pin-cli','Pin (CLI)'], ['/how-to/websites-on-ipfs/deploy-github-action', 'Deploy to IPFS with GitHub Actions' ], - + ] }, { @@ -535,4 +545,4 @@ module.exports = { 'tabs' ], extraWatchFiles: ['.vuepress/nav/en.js'] -} +} \ No newline at end of file diff --git a/package.json b/package.json index 3bf28f3e7..d0bf47607 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,14 @@ "license": "MIT", "devDependencies": { "@centerforopenscience/markdown-it-video": "^1.0.0", + "@vue/component-compiler-utils": "^3.2.0", "@vuepress/plugin-active-header-links": "^1.9.10", "@vuepress/plugin-back-to-top": "^1.9.10", "@vuepress/plugin-google-analytics": "^1.9.10", "@vuepress/plugin-html-redirect": "^0.2.1", "@vuepress/plugin-last-updated": "^1.9.8", "@vuepress/plugin-search": "^1.9.8", + "ansi-regex": "^5.0.1", "husky": "^8.0.3", "lint-staged": "^16.2.0", "markdown-it-deflist": "^2.1.0", @@ -20,7 +22,8 @@ "markdown-it-imsize": "^2.0.1", "markdown-it-task-lists": "^2.1.1", "markdown-it-video": "^0.6.3", - "prettier": "^3.6.2", + "prettier": "^2.8.8", + "strip-ansi": "^6.0.0", "stylus-supremacy": "^2.17.3", "vuepress": "^1.9.10", "vuepress-plugin-canonical": "^1.0.0", @@ -32,6 +35,10 @@ "vuepress-plugin-seo": "^0.2.0", "vuepress-plugin-sitemap": "^2.3.1" }, + "overrides": { + "strip-ansi": "^6.0.0", + "ansi-regex": "^5.0.1" + }, "prettier": { "arrowParens": "avoid", "bracketSpacing": true, @@ -70,4 +77,4 @@ "vue-tabs-component": "^1.5.0", "vuepress-plugin-tabs": "^0.3.0" } -} +} \ No newline at end of file