Closed yujinlin0224 closed 1 year ago
I think this error is specific to Windows, I switch to WSL and solved, but now I need to try to figured out how to run local web browser to debug from WSL...
I found that change here https://github.com/aklinker1/vite-plugin-web-extension/blob/0379b2ee89e8e0a7798c6b248839243793f73de9/packages/vite-plugin-web-extension/src/utils.ts#L135-L138 to
return inputs.map((file) => {
if (path.isAbsolute(file)) return path.relative(paths.rootDir, file).replace(/\\/g, "/");
return file.replace(/\\/g, "/");
});
can fix it
Since create-vite-plugin-web-extension still in v1, I try to use
pnpm create vite-plugin-web-extension
with Vue+Typescript to get vite-plugin-web-extension v1 project and migrate to v2 by myself, but when I try to startpnpm dev
, I got this error:Then I found in https://github.com/aklinker1/vite-plugin-web-extension/tree/main/packages/demo-vue has already v2 demo, I also try to run but still got the same error.