-
Notifications
You must be signed in to change notification settings - Fork 29
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
"Cannot find module error" when query params are dynamic #229
Comments
I've added a demo so it's more clear. https://codesandbox.io/s/runtime-microservice-vepg2?file=/components/OptimizedImage.vue |
Hello, @michaelschufi. This issue is related to Webpack, you can't define dynamic query params. It seems to be related to the Webpack ContextModule. |
Hmm, that's a pity. What would be the approach to do a non-hardcoded dynamic picture component? I think this is a similar issue like #225. |
I had a look at https://github.com/cyrilwanner/react-optimized-image and its babel plugin approach. I will try this. If you want to, you can close this issue. |
Hi
Thank you for this very helpful Nuxt plugin!
Problem
My goal is to make a simple dynamic component, which resizes an image asset based on given sizes in pixels. However, I'm getting an error when refreshing the page.
Cannot find module './myimage.png?resize&sizes[]=120&sizes[]=100&sizes[]=50&format=webp'
Extract from my Vue component
What's weird is that this
works just fine.
Do you have an idea why this error occurrs?
Demo
https://codesandbox.io/s/runtime-microservice-vepg2?file=/components/OptimizedImage.vue
P.S.
The chat room is not working anymore.
The text was updated successfully, but these errors were encountered: