Skip to content

es-build regression 17.1.0-next.0 rebuild causes "the request url "..." is outside of Vite serving allow list." #26555

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

Closed
1 task done
LanderBeeuwsaert opened this issue Dec 1, 2023 · 6 comments

Comments

@LanderBeeuwsaert
Copy link

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

17.0.5

Description

When having @angular-devkit/build-angular:browser-esbuild on
with build-angular and angular/cli on 17.1.0-next.0
any dev server rebuild causes:
The request url "..." is outside of Vite serving allow list for all assets

Minimal Reproduction

I suppose it's down to my configuration somehow, but there's nothing that special to it.
reversing to 17.0.5 immediately solves this

Exception or Error

No response

Your Environment

Angular CLI: 17.1.0-next.0
Node: 18.15.0
Package Manager: npm 9.8.1
OS: win32 x64

Angular: 17.0.5
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker

Package                              Version
--------------------------------------------------------------
@angular-devkit/architect            0.1701.0-next.0
@angular-devkit/build-angular        17.1.0-next.0
@angular-devkit/core                 16.2.6
@angular-devkit/schematics           16.2.6
@angular/cdk                         16.2.12
@angular/cli                         17.1.0-next.0
@angular/fire                        16.0.0
@angular/google-maps                 16.2.12
@angular/material                    16.2.12
@angular/material-date-fns-adapter   16.2.12
@angular/youtube-player              16.2.12
@bazel/typescript                    5.8.1
@schematics/angular                  16.2.6
rxjs                                 7.8.1
typescript                           5.2.2
zone.js                              0.14.2

Anything else relevant?

No response

@alan-agius4
Copy link
Collaborator

You can please share you assets configuration?

@alan-agius4 alan-agius4 added the needs: more info Reporter must clarify the issue label Dec 1, 2023
@LanderBeeuwsaert
Copy link
Author

LanderBeeuwsaert commented Dec 1, 2023

@alan-agius4 not entirely sure, but is this what you mean, at the start of angular.json?

image

@alan-agius4 alan-agius4 removed the needs: more info Reporter must clarify the issue label Dec 5, 2023
@alan-agius4
Copy link
Collaborator

This should be fixed by #26556 which will be available on NPM later this week.

@hillin
Copy link

hillin commented Dec 12, 2023

In my case this seems fixed when running ng serve, but the same error occurs when hot reload is triggered.

"@angular/cli": "17.1.0-next.1"

@LanderBeeuwsaert
Copy link
Author

@hillin see the linked ticket #26624 , it's solved there, should probably be released this week

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants