-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
🐛 BUG: Astro/image getImage doesn't work in .ts file #4161
Comments
Build message : {
errors: [
{
detail: undefined,
id: '',
location: {
column: 42,
file: 'node_modules/@astrojs/image/dist/lib/get-image.js',
length: 22,
line: 72,
lineText: ' const { default: mod } = await import("virtual:image-loader");',
namespace: '',
suggestion: ''
},
notes: [
{
location: null,
text: 'You can mark the path "virtual:image-loader" as external to exclude it from the bundle, which will remove this error. You can also add ".catch()" here to handle this failure at run-time instead of bundle-time.'
}
],
pluginName: '',
text: 'Could not resolve "virtual:image-loader"'
}
]
} |
I have the same error message in a |
Hi, For information, I redid tests with the following versions : And the issue persists. |
Hey @oliverpool and @nicolasverlhiac, just ran into a similar issue. Can you confirm that the |
Hey @natemoo-re, I confirm that I already have these settings in my |
I think I found my issue: I was using |
What version of
astro
are you using?v1.0.0-rc.4
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Mac (M1)
Describe the Bug
Hi @tony-sull 👋 (issue following our discussion yesterday)
@astrojs/image: 0.3.0
When is use
getImage
in a.ts
context, and when I runyarn build
oryarn dev
I get this error message :Test it :
Link to Minimal Reproducible Example
N/A
Participation
The text was updated successfully, but these errors were encountered: