-
Notifications
You must be signed in to change notification settings - Fork 87
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
Unknown file extension ".png" for ".../user.png" #54
Comments
Hi! I'm also getting the same issue. Node Version: Error:
The specific file seems to be @daveashworth 's solution didn't work for me: And using relative import also did not work, i.e. changing
In Given that this seems to occur at startup, is this potentially an issue with the Vite or TS configuration, @kentcdodds? I should note that I recently ran |
In the meantime, I'm just going to change `return imageId ? `/resources/user-images/${imageId}` : userFallback` to `return imageId ? `/resources/user-images/${imageId}` : null` It just means the user image in the top-right is a broken image icon, which isn't a big deal. |
Check if you are importing functions into your module with .ts extension I remember I got the same error and that fixed it for me |
Thank you @Atakannbal
This fixed it for me as well. When I do auto import by VSCode, for some reason, it's importing .js path of the file. After updating the import to I still couldn't figure out why the error we are getting is pointing to |
I had the same issue and it also fixed this for me! |
Using node version 20.12.2, npm v10.5.0.
I'm going through the
web-auth
module and in the "Require Authenticated" exercises, after making the required changes, the playground/problem app dies with the error in the title of the issue. I have deleted the repo, pulled all code down again, and the same thing happens.This seems to happen in multiple of the modules (at least Require Authenticated, Email, and Reset Password. There may be more, but I wasn't keeping track of all of them).
I'm going to link to a Discord conversation for the rest of the details, but in short, to reproduce:
web-auth
reporequireUserId
function toauth.server.ts
requireUserId
function indownload-user-data.tsx
, save, and watch the logs for the error.Original Posts:
More Details:
My temporary fix
To get around the issue for now, I changed this line in
utils/misc.tsx
:to
The text was updated successfully, but these errors were encountered: