-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using this inside of a npm workspaces monorepo #14
Comments
sorry, I have no idea what should I do with this. |
when using the second param, it looks into the however if I have structured my whole directory as a npm workspace then there is two the issue is that the second param does not account for this & that is why it is assuming the directory does not exist. however it does exisit (which is what the second screenshot on the leftside was supposed to show). I am not sure how this could possibly be fixed. I believe the examples that have been shown/tested have been solo projects not monorepos hence why this fault is showing up for me now. |
in my example the expected path should be but I am seeing it say |
The issue seems to lie with how you are creating the path inside the
Inspecting this more and its the use of |
Hi, @topheruk could you try v0.1.12. |
EDIT: It works, needed to add Do you have an example of a wasm module built with rust that I could try?
|
I have a PR (#16) going up for to fix a bundling issue I have (may not affect y'all) but here is an example of me using it in a monorepo with pnpm workspaces https://github.com/greym0uth/sorrakis |
hi @greym0uth, based on @topheruk 's report, seems and sorry #16 changed too much, I don't have time to try this recently, I think I should revert it for now. I'll continue when I got time. Is there a simple way to fix this? @topheruk , I never tried monorepo, but shouldn't the submodule have a link to global? I hope you can figure it out and do a pr. I 'm too busy with my work, and long time no touch rust :( |
I will look into this resolving for would be worth just highlighting in the README for those using wasm-pack (unsure if Go/C/C#/etc. would have the same issue with their respective bundlers) that this step will need to be required in order for this too work.
I can give @greym0uth the PR a go though I must preface this by saying I am new to issues & PRs on Github, so would need assistance on that front |
Hey I'm running into pretty much the same issue, @topheruk any updates? You mentioned adding the Did you not run into that when you removed the |
This week I'm going to have a deeper look at this issue as there is likely a few cases which need to be looked into. I didn't get that error but then there may have been a recent update to vite that introduced this so can't guarantee my fix still stands. @DoctorBracewell are you using pnpm, npm or yarn? i am unsure if that should make a difference but worth sharing. also which version are you currently using? This also my first attempt at dealing with a node project of this sort so not an expert at all. |
Currently using npm right now. I'll take a look at it was well if I have the chance, please keep us updated if you find anything :) |
I've made a comment on an issue in the wasm-pack repo and will probably look into a pull request for |
Seems to fail when used in a npm workspace.
This is a
Svelte
not aSvelteKit
project but unsure that would make a difference.Module does exist here
The text was updated successfully, but these errors were encountered: