[FLI-944] Flipt Client Browser: Module not found: Can't resolve '../pkg'
markphelps opened this issue · 1 comments
In trying to get a wasm version of the clients working for browser workflows, we have created flipt-client-browser
I based it's filesystem layout off of this blog post: https://rybicki.io/blog/2023/06/27/rust-crate-into-typescript-library.html
Unfortunately, I cannot get it to load correctly in a JavaScript application (see: https://github.com/flipt-io/flipt/compare/nextjs-clientside?expand=1)
As when I try to visit a page that includes this new SDK, I get the error Module not found: Can't resolve '../pkg'
I can see that the wasm/javascript/typescript files that are expected to be in pkg
are there:
If anyone with more experience/knowledge can help us package our wasm client in an NPM module that can be installed via NPM that would be greatly appreciated!!
From SyncLinear.com | FLI-944