You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use @virgilsecurity/e3kit-browser with vite using this wasm plugin. Not sure if the problem is with the library I'm using which is https://github.com/VirgilSecurity/virgil-e3kit-js/ or with how I've configured the vite as I'm transitioning from Webpack 5 and React Rewired.
>[email protected] dev
> vite
VITE v5.3.5 ready in 2701 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
✘ [ERROR] Could not resolve "a"
vite-plugin-wasm-namespace:/home/projects/vitejs-vite-jruc2f/node_modules/@virgilsecurity/e3kit-browser/dist/libpythia.browser.wasm:43:935:
43 │ ... __vite__wasmImport_0_29, E as __vite__wasmImport_0_30 } from "a";
╵ ~~~
You can mark the path "a" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
✘ [ERROR] Could not resolve "a"
vite-plugin-wasm-namespace:/home/projects/vitejs-vite-jruc2f/node_modules/@virgilsecurity/e3kit-browser/dist/libfoundation.browser.wasm:43:455:
43 │ ... __vite__wasmImport_0_13, o as __vite__wasmImport_0_14 } from "a";
╵ ~~~
You can mark the path "a" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
Error: Build failed with 2 errors:
vite-plugin-wasm-namespace:/home/projects/vitejs-vite-jruc2f/node_modules/@virgilsecurity/e3kit-browser/dist/libfoundation.browser.wasm:43:455: ERROR: Could not resolve "a"
vite-plugin-wasm-namespace:/home/projects/vitejs-vite-jruc2f/node_modules/@virgilsecurity/e3kit-browser/dist/libpythia.browser.wasm:43:935: ERROR: Could not resolve "a"
at failureErrorWithLog (/home/projects/vitejs-vite-jruc2f/node_modules/esbuild/lib/main.js:1462:15)
at eval (/home/projects/vitejs-vite-jruc2f/node_modules/esbuild/lib/main.js:935:25)
at eval (/home/projects/vitejs-vite-jruc2f/node_modules/esbuild/lib/main.js:1343:9) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
Node.js 18.20.3
~/projects/vitejs-vite-jruc2f 10s
❯ vite
VITE v5.3.5 ready in 2320 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
✘ [ERROR] Could not resolve "a"
vite-plugin-wasm-namespace:/home/projects/vitejs-vite-jruc2f/node_modules/@virgilsecurity/e3kit-browser/dist/libpythia.browser.wasm:43:935:
43 │ ... __vite__wasmImport_0_29, E as __vite__wasmImport_0_30 } from "a";
╵ ~~~
You can mark the path "a" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
✘ [ERROR] Could not resolve "a"
vite-plugin-wasm-namespace:/home/projects/vitejs-vite-jruc2f/node_modules/@virgilsecurity/e3kit-browser/dist/libfoundation.browser.wasm:43:455:
43 │ ... __vite__wasmImport_0_13, o as __vite__wasmImport_0_14 } from "a";
╵ ~~~
You can mark the path "a" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
Error: Build failed with 2 errors:
vite-plugin-wasm-namespace:/home/projects/vitejs-vite-jruc2f/node_modules/@virgilsecurity/e3kit-browser/dist/libfoundation.browser.wasm:43:455: ERROR: Could not resolve "a"
vite-plugin-wasm-namespace:/home/projects/vitejs-vite-jruc2f/node_modules/@virgilsecurity/e3kit-browser/dist/libpythia.browser.wasm:43:935: ERROR: Could not resolve "a"
at failureErrorWithLog (/home/projects/vitejs-vite-jruc2f/node_modules/esbuild/lib/main.js:1462:15)
at eval (/home/projects/vitejs-vite-jruc2f/node_modules/esbuild/lib/main.js:935:25)
at eval (/home/projects/vitejs-vite-jruc2f/node_modules/esbuild/lib/main.js:1343:9) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
Node.js 18.20.3
The text was updated successfully, but these errors were encountered:
Trying to use @virgilsecurity/e3kit-browser with vite using this wasm plugin. Not sure if the problem is with the library I'm using which is https://github.com/VirgilSecurity/virgil-e3kit-js/ or with how I've configured the vite as I'm transitioning from Webpack 5 and React Rewired.
Here's a sandbox minimal reproduction: https://stackblitz.com/edit/vitejs-vite-jruc2f
The text was updated successfully, but these errors were encountered: