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
Describe the bug
Trying to migrate my project from webpack 5 to vite 5 using vite-plugin-wasm but getting Could not resolve "a" when in dev mode and Rollup failed to resolve import "a" when running build.
VITE v5.3.5 ready in 159 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:/Users/Dev/vite-react-app/node_modules/@virgilsecurity/e3kit-browser/dist/libpythia.browser.wasm:43:935:
43 │ ..._0_26, B as __vite__wasmImport_0_27, C as __vite__wasmImport_0_28, D as __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:/Users/Dev/vite-react-app/node_modules/@virgilsecurity/e3kit-browser/dist/libfoundation.browser.wasm:43:455:
43 │ ..._0_10, l as __vite__wasmImport_0_11, m as __vite__wasmImport_0_12, n as __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.
Expected behavior
No errors and the EThree client initialising.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: MacOS 14
Browser Chrome 124
The text was updated successfully, but these errors were encountered:
Describe the bug
Trying to migrate my project from webpack 5 to vite 5 using vite-plugin-wasm but getting
Could not resolve "a"
when in dev mode andRollup failed to resolve import "a"
when running build.To Reproduce
Here's a sandbox minimal reproduction: https://stackblitz.com/edit/vitejs-vite-jruc2f
Steps to reproduce the behavior:
yarn create vite vite-react-app --template react-ts
to create a fresh vite project using react and typscript templateyarn add @virgilsecurity/e3kit-browser
andyarn add -D vite-plugin-wasm
to the project.vite-config.ts
withyarn dev
oryarn build
yarn build
Error for
yarn dev
Expected behavior
No errors and the EThree client initialising.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: