Skip to content

The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths #96

Closed
@charris-msft

Description

@charris-msft

I'm getting the following error when running azd up:

ERROR: error executing step command 'package --all': failed building service 'web': failed invoking event handlers for 'prebuild', 'prebuild' hook failed with exit code: '1', Path: 'C:\Users\charris\AppData\Local\Temp\azd-prebuild-1235103698.ps1'. : exit code: 1, stdout:
up to date, audited 265 packages in 801ms

found 0 vulnerabilities

> frontend@0.0.0 build
> tsc && vite build

vite v4.5.5 building for production...
transforming...
✓ 4146 modules transformed.
rendering chunks...
✓ built in 9.12s
, stderr: [vite:build-html] The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "d:/git/azure_agent/evals/GH_MVPS/src/frontend/index.html".
error during build:
    at async Bundle.generate (file:///d:/git/azure_agent/evals/GH_MVPS/src/frontend/node_modules/rollup/dist/es/shared/node-entry.js:17930:9)
    at async file:///d:/git/azure_agent/evals/GH_MVPS/src/frontend/node_modules/rollup/dist/es/shared/node-entry.js:26785:27
    at async catchUnfinishedHookActions (file:///d:/git/azure_agent/evals/GH_MVPS/src/frontend/no    at async Bundle.generate (file:///d:/git/azure_agent/evals/GH_MVPS/src/frontend/node_modules/rollup/dist/es/shared/node-entry.js:17930:9)
    at async file:///d:/git/azure_agent/evals/GH_MVPS/src/frontend/node_modules/rollup/dist/es/shared/node-entry.js:26785:27
    at async catchUnfinishedHookActions (file:///d:/git/azure_agent/evals/GH_MVPS/src/frontend/node_modules/rollup/dist/es/shared/node-entry.js:25910:16)
    at async build (file:///d:/git/azure_agent/evals/GH_MVPS/src/frontend/node_modules/vite/dist/node/chunks/dep-b2890f90.js:48085:22)
    at async CAC.<anonymous> (file:///d:/git/azure_agent/evals/GH_MVPS/src/frontend/node_modules/vite/dist/node/cli.js:842:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions