-
Notifications
You must be signed in to change notification settings - Fork 12k
Vite Pre-transform error #26897
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
Comments
This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please? You can read here why this is needed. A good way to make a minimal repro is to create a new app via This might be related to your directory structure so its really important to get an accurate repro to diagnose this. |
I have the same problem on 3 different projects after update |
As a workaround angular.json This simply set the preTransformRequests option to false |
same issue here , just did the update 😥 |
I have the same issue on 5 different projects after update |
Here is some info about this issue: I'm using the latest MacOS 14.2.1 Node version:
NG version:
Here is a repo to reproduce: command to run:
When I hit route in my Angular 17.1.0 with SSR: http://localhost:4200/users/1 I got the error in the console:
I hope this helps you. |
…te with SSR This commit fixes a regression which causes a pre-transform error when using vite with ssr. The `request.url` is now passed to the index transformer instead of `request.originalUrl`. This is because the `request.url` will have a value of the `index.html`. Closes angular#26897
…te with SSR This commit fixes a regression which causes a pre-transform error when using vite with ssr. The `request.url` is now passed to the index transformer instead of `request.originalUrl`. This is because the `request.url` will have a value of the `index.html`. Closes angular#26897
…te with SSR This commit fixes a regression which causes a pre-transform error when using vite with ssr. The `request.url` is now passed to the index transformer instead of `request.originalUrl`. This is because the `request.url` will have a value of the `index.html`. Closes #26897
…te with SSR This commit fixes a regression which causes a pre-transform error when using vite with ssr. The `request.url` is now passed to the index transformer instead of `request.originalUrl`. This is because the `request.url` will have a value of the `index.html`. Closes #26897 (cherry picked from commit 0b0df5a)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
serve
Is this a regression?
The previous version in which this bug was not present was
17.0.9
Description
Hey,
We've just upgraded from
17.0.9
to17.1.0
and when runningng server
we are getting these logs in console on each request -As you can see the path changes based on the URL of request.
It doesn't seem to have any effect on functionality from our testing as it seems to work just fine, but why are we getting these logs? Can someone help as determine as to what might be the cause of this?
Minimal Reproduction
Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: