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

Modules with wasm cannot be build #372

Open
nounder opened this issue Jul 12, 2024 · 0 comments
Open

Modules with wasm cannot be build #372

nounder opened this issue Jul 12, 2024 · 0 comments

Comments

@nounder
Copy link

nounder commented Jul 12, 2024

Loading @vercel/og which uses yoga and resvg wasm modules for image generation fails.

https://cdn.skypack.dev/@vercel/og throws build error:

/*
 * [Package Error] "@vercel/[email protected]" could not be built. 
 *
 *   [1/5] Verifying package is valid…
 *   [2/5] Installing dependencies from npm…
 *   [3/5] Building package using esinstall…
 *   Running esinstall...
 *   Could not load @vercel/og/dist/yoga.wasm?module (imported by ../tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/index.edge.js): ENOENT: no such file or directory, open '/tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/yoga.wasm?module'
 *   Could not load /tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/yoga.wasm?module (imported by ../tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/index.edge.js): ENOENT: no such file or directory, open '/tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/yoga.wasm?module'
 *
 * How to fix:
 *   - If you believe this to be an error in Skypack, file an issue here: https://github.com/skypackjs/skypack-cdn/issues
 *   - If you believe this to be an issue in the package, share this URL with the package authors to help them debug & fix.
 *   - Use https://skypack.dev/ to find a web-friendly alternative to find another package.
 */

console.warn("[Package Error] \"@vercel/[email protected]\" could not be built. \n[1/5] Verifying package is valid…\n[2/5] Installing dependencies from npm…\n[3/5] Building package using esinstall…\nRunning esinstall...\nCould not load @vercel/og/dist/yoga.wasm?module (imported by ../tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/index.edge.js): ENOENT: no such file or directory, open '/tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/yoga.wasm?module'\nCould not load /tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/yoga.wasm?module (imported by ../tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/index.edge.js): ENOENT: no such file or directory, open '/tmp/cdn/_KXvVoWY5jRNQzan8tu5G/node_modules/@vercel/og/dist/yoga.wasm?module'");
throw new Error("[Package Error] \"@vercel/[email protected]\" could not be built. ");
export default null;
@nounder nounder changed the title Loading wasm modules doesn't work Modules with wasm cannot be build Jul 12, 2024
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