-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
❗️❗️ WebAssembly.instantiate break all #205
Comments
You'll need to lock your Nitro version to v2.8.1 in your package.json until unjs/unwasm#20 is fixed "overrides": {
"nitropack": "2.8.1"
} |
Edge function crash and new error:
I checked the dependencies with |
Latest version of unwasm supports -- @harlan-zw btw is it expected that you are using wasm for prerender bundle as well? It adds to size and slows speed. |
This does seems like a bug, it should use the node version in a build environment. It should fallback to the wasm version in unsupported build environments (StackBlitz). I don't think this issue relates to that though? |
I spotted issue on Cloudflare pages with undocs (i guess latest Node.js LTS). Good to know that at least it is not intentional to always use wasm 👍🏼 |
@luca-smartpricing Please try RC 47, should be working. |
|
@harlan-zw |
I am somewhat new to nuxt and this seo module. I am unsure exactly what the fix here is. I am getting this issue in my latest project and not sure what to do. |
Can you provide the version and nitro preset you're using? |
Here is my nuxt config and I am using export default defineNuxtConfig({
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
css: ['~/assets/css/main.css'],
nitro: {
preset: "cloudflare-pages"
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '',
storageKey: 'nuxt-color-mode'
},
modules: ["nitro-cloudflare-dev", 'nuxt-swiper', "@nuxt/image", '@nuxtjs/color-mode', '@nuxtjs/seo']
}) and this is the full error
|
When using My Solution was to force nitro preset: nitro: {
$development: {
preset: 'bun',
},
$production: {
preset: 'cloudflare-pages'
}
} |
This should be fixed as of og-image RC 52. If you are still running into problems, please make a new issue on that repo. |
Describe the bug
If I set
nitro: { preset: 'netlify_edge' }
with the@nuxtjs/seo
module a build error appear and break deployment on NetlifyThere are the errors:
Reproduction
https://stackblitz.com/edit/github-c7te5q-jnnmga?file=nuxt.config.ts
System / Nuxt Info
The text was updated successfully, but these errors were encountered: