You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With previous version of angular(webpack) I could start dev server and under /api I've got resources from ../api folder. With vite+esbuild I have following errors on console:
➜ Local: http://localhost:35093/
The request url "/home/darostol/projects/memc-rs-web/api/docs/index.md" is outside of Vite serving allow list.
The file path is correct:
ls - /home/darostol/projects/memc-rs-web/api/docs/index.md
/home/darostol/projects/memc-rs-web/api/docs/index.md
It just seems that vite configuration doesn't allow it to be served.
Minimal Reproduction
npm run-script start
Exception or Error
Initial Chunk Files | Names | Raw Size
scripts.js | scripts | 602.53 kB |
styles.css | styles | 197.49 kB |
polyfills.js | polyfills | 83.57 kB |
chunk-RPPPXHQ7.js | - | 34.89 kB |
main.js | main | 8.41 kB |
| Initial Total | 926.90 kB
Lazy Chunk Files | Names | Raw Size
home-page.module-FNKB4QJB.js | home-page-module | 27.42 kB |
blog.module-5PJYBIP2.js | blog-module | 6.66 kB |
download.module-2FN37KB5.js | download-module | 6.34 kB |
docs.module-CRPRTEUZ.js | docs-module | 2.97 kB |
Application bundle generation complete. [2.135 seconds]
Watch mode enabled. Watching for file changes...
➜ Local: http://localhost:35093/
The request url "/home/darostol/projects/memc-rs-web/api/docs/index.md" is outside of Vite serving allow list.
- /home/darostol/projects/memc-rs-web/client-workspace
Refer to docs https://vitejs.dev/config/server-options.html#server-fs-allow for configurations and more details.
The request url "/home/darostol/projects/memc-rs-web/api/docs/index.md" is outside of Vite serving allow list.
The request url "/home/darostol/projects/memc-rs-web/api/docs/index.md" is outside of Vite serving allow list. (x2)
This configuration is referencing files outside of the workspace root which the Vite-based dev server currently does not allow.
However, it should be possible for us to adjust the Vite server to ensure that all configured assets are allowed during server initialization.
Command
serve
Is this a regression?
The previous version in which this bug was not present was
16
Description
I've just migrated to Angular v17 and vite+esbuild my Angular application.
I have following configuration for application assets:
With previous version of angular(webpack) I could start dev server and under /api I've got resources from ../api folder. With vite+esbuild I have following errors on console:
➜ Local: http://localhost:35093/
The request url "/home/darostol/projects/memc-rs-web/api/docs/index.md" is outside of Vite serving allow list.
The file path is correct:
It just seems that vite configuration doesn't allow it to be served.
Minimal Reproduction
npm run-script start
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: