Closed behrad-kzm closed 1 year ago
ibid
Thanks for reporting! Working on this issue! @behrad-kzm
@behrad-kzm Hello! Solve your problem in 5.0.1 release!
@rstp-god so... Version 5.0.1 works for server side code, but webpack is balking for the frontend javascript. Below is the error for worker.es.js
, but the same is thrown for browser.es.js
. And, while I'm compiling es modules, the cjs versions of those libs seem to reference the same missing file.
I can replace the the path, ./dist/
with @virgilsecurity/core-foundation
to get the working import:
import foundationWasm from '@virgilsecurity/core-foundation/libfoundation.worker.wasm';
Should be an easy fix.
ERROR in ./node_modules/virgil-crypto/worker.es.js 2:0-62
Module not found: Error: Can't resolve './dist/libfoundation.worker.wasm' in '/app/node_modules/virgil-crypto'
resolve './dist/libfoundation.worker.wasm' in '/app/node_modules/virgil-crypto'
using description file: /app/node_modules/virgil-crypto/package.json (relative path: .)
using description file: /app/node_modules/virgil-crypto/package.json (relative path: ./dist/libfoundation.worker.wasm)
no extension
/app/node_modules/virgil-crypto/dist/libfoundation.worker.wasm doesn't exist
.ts
/app/node_modules/virgil-crypto/dist/libfoundation.worker.wasm.ts doesn't exist
.tsx
/app/node_modules/virgil-crypto/dist/libfoundation.worker.wasm.tsx doesn't exist
.js
/app/node_modules/virgil-crypto/dist/libfoundation.worker.wasm.js doesn't exist
.jsx
/app/node_modules/virgil-crypto/dist/libfoundation.worker.wasm.jsx doesn't exist
as directory
/app/node_modules/virgil-crypto/dist/libfoundation.worker.wasm doesn't exist
@knightcode Hello! release 5.0.2 return those files inside dist should work fine now!
@rstp-god thanks for paying attention, It works properly now!🥳 I will close this issue.
I have issue with 5.0.0 version. the code with version 4.2.2 works fine but at the version 5.0.0 I have this issue:
this is the v4.2.2 issued file:
v5.0.0 issued file:
It seems there is a problem with the line 4.
am I doing something wrong?