nuxt / image

Plug-and-play image optimization for Nuxt applications.
https://image.nuxt.com
MIT License
1.3k stars 256 forks source link

nuxt image module + cypress component testing sharp error #387

Open flozero opened 2 years ago

flozero commented 2 years ago

Hello ! I followed this tutorial. https://docs.cypress.io/guides/component-testing/framework-configuration#Next-js-Webpack-5

If I remove nuxt image it's working properly

My current deps:

When running cypress component testing. Got this first error. Screen Shot 2021-08-14 at 7 50 09 PM

After install webpack-dev-server. I now have this error.

Screen Shot 2021-08-14 at 7 51 41 PM

I will also post the error on cypress project and refer it here.

JessicaSachs commented 2 years ago

Hey, I can't get the sharp error to happen. The specs compile correctly.

Screen Shot 2021-08-17 at 9 35 38 PM

RE the first failure: We assumed that Nuxt ships webpack-dev-server, but seemingly it doesn't, so we'll have to support however Nuxt launches its dev server.

I don't think the sharp error is a Cypress thing because it works on my machine. My node version is v14.17.0 and I'm on Big Sur. A stab-in-the-dark suggestion is to rm -rf your node_modules so that the native modules rebuild.