Skip to content

NF: Specify the output path relative to workspace root #446

Closed
@omishyn-dm

Description

@omishyn-dm

I use "@angular-architects/native-federation": "17.1.1" and esbuild options with outputPath as object
(as in "$schema": "node_modules/@angular-devkit/build-angular/src/builders/application/schema.json")

and on build I heve error

but if change source code const outputPath = path.join(options.outputPath, 'browser') in node_modules/@angular-architects/native-federation/src/builders/build/builder.js

to

const outputPath = typeof options.outputPath === 'string'
? path.join(options.outputPath, 'browser')
: path.join(options.outputPath.base, options.outputPath.browser);

it works

Please check it

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