Skip to content
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

Support for Yarn Plug'n'Play #571

Open
jmccann opened this issue Jun 30, 2023 · 0 comments
Open

Support for Yarn Plug'n'Play #571

jmccann opened this issue Jun 30, 2023 · 0 comments

Comments

@jmccann
Copy link

jmccann commented Jun 30, 2023

We are managing a edge compute repo using yarn. Right now we use yarn berry with nodeLinker: node-modules just fine.

We want to get to using zero-install. To get there we need to use Yarn Plug'n'Play
.

While trying to get to using Yarn Plug'n'Play we noticed that compiles of our javascript to WASM started to fail when running js-compute-runtime ./src/index.js ./bin/main.wasm.

» yarn build
Error: failed to open input file

Caused by:
    Not a directory (os error 20)
Error: Failed to compile JavaScript to Wasm:  Wizer initialization failure

I reproduced this using the empty compute javascript starter kit. The last commit which enables Yarn PNP has issues. The previous commits on setup to use yarn and yarn berry have no issues. https://github.com/jmccann/compute-starter-kit-javascript-empty

I was following the migration guide found at https://yarnpkg.com/getting-started/migration#switching-to-plugnplay

@jmccann jmccann changed the title support for yarn pnp support for Yarn Plug'n'Play Jun 30, 2023
@jmccann jmccann changed the title support for Yarn Plug'n'Play Support for Yarn Plug'n'Play Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant