vite build error in sharedWorker.js #161
Unanswered
ShangChien
asked this question in
Q&A
Replies: 1 comment
-
For vite build issue,current solution is inspecting the bundle file (which import rdkitjs) in assets file fold, then manual copy RDKit_minimal.wasm in it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
environment:
Keep RDKit_minimal.js and RDKit_minimal.wasm in the same directory, use it in sharedWorker with code:
The code runs fine in the development environment, but after packaging in the production environment I get an error like this:
it seem a strategy problem of vite, which RDKit_minimal.js should import *.wasm files as the recommended way.(i am not sure exactly)
current my progress for
rdkit.js
with tooling ofvue3 & vite3
:main.js is OK with all env (dev, production)
sharedWork.js is OK just with dev
The purpose of initiating this discussion is to ask if everyone has the same situation, and to record my question for others to refer to. If no one answers, I will answer it myself after solving the problem
Beta Was this translation helpful? Give feedback.
All reactions