-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows path #12
Comments
Hi @lencx , thanks for patch. This partially fixes it. But there are two issues
for example here, whichever the second one, it will give error import init from "@rsw/hey"
import init2, { greet as greet2 } from "rsw-test"
|
This does not seem to be a plugin problem, you can try to run |
Dev works fine, the issue is only with build. Maybe it is latest vite, I will try again |
Okay, looking forward to your feedback. |
@lencx i just tried again and get the same. First one works fine and with second one I get: wasm.20b16b66.js:1 Uncaught (in promise) TypeError: Failed to construct 'URL': Invalid URL
at n (wasm.20b16b66.js:1)
at wasm.20b16b66.js:1 Also when I try with vite-SSG, i get this error during build: [vite-plugin-pwa] `new URL(url, import.meta.url)` is not supported in SSR.
file: C:/ui-playground/rsw-test/pkg/rsw-test.js:116:16
114: async function init(input) {
115: if (typeof input === 'undefined') {
116: input = new URL('rsw-test_bg.wasm', import.meta.url);
^
117: }
118: const imports = {};
Error: `new URL(url, import.meta.url)` is not supported in SSR.
at error (C:\ui-playground\node_modules\.pnpm\r[email protected]\node_modules\rollup\dist\shared\rollup.js:164:30)
at throwPluginError (C:\ui-playground\node_modules\.pnpm\r[email protected]\node_modules\rollup\dist\shared\rollup.js:19277:12)
at Object.error (C:\ui-playground\node_modules\.pnpm\r[email protected]\node_modules\rollup\dist\shared\rollup.js:19926:20)
at Object.error (C:\ui-playground\node_modules\.pnpm\r[email protected]\node_modules\rollup\dist\shared\rollup.js:19453:38)
at Object.transform (C:\ui-playground\node_modules\.pnpm\v[email protected]\node_modules\vite\dist\node\chunks\dep-cc49d7be.js:50723:30)
at Object.<anonymous> (C:\ui-playground\node_modules\.pnpm\v[email protected]\node_modules\vite\dist\node\chunks\dep-cc49d7be.js:51204:33)
at C:\ui-playground\node_modules\.pnpm\r[email protected]\node_modules\rollup\dist\shared\rollup.js:20131:25 {
pos: 3247, |
Because I don’t have a windows computer, you may need to verify it for me. Thanks 🙏
#8 (comment)
The text was updated successfully, but these errors were encountered: