From 9eef4a9e50509f0a116fad07c718541127e0eafe Mon Sep 17 00:00:00 2001 From: qusay Date: Sun, 1 Oct 2023 18:01:21 +0800 Subject: [PATCH] bug: Don't include a leading slash ('/') in the second parameter of path.resolve in your alias configuration. --- examples/helia-vite/vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helia-vite/vite.config.js b/examples/helia-vite/vite.config.js index b4a57444..1c538def 100644 --- a/examples/helia-vite/vite.config.js +++ b/examples/helia-vite/vite.config.js @@ -5,6 +5,6 @@ import { defineConfig } from 'vite' export default defineConfig({ plugins: [react()], resolve: { - alias: [{ find: '@', replacement: path.resolve(__dirname, '/src') }] + alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }] } })