Skip to content

Error building project using artifacts created from angular source code build #46771

@phalgunv

Description

@phalgunv

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

In order to inestigate #13993, first I build angular-cli from source, then installed the tar balls and created a new angular project with it. This was done so that a new angular project is created with the correct dependencies.

Then I followed instructions at thttps://github.com/angular/angular/blob/main/docs/DEVELOPER.md
to copy angular build artifacts over to the newly created project using yarn link. Running "npm start" results in the above error.

I manually updated the javascript bundle where the issue was found and replaced ExternalExpr as suggested in the error message below. When I ran npm start again, I did not get error for ExternalExpr but similar error for another named export. Is there anything I am missing?

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

An unhandled exception occurred: Named export 'ExternalExpr' not found. The requested module '@angular/compiler' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@angular/compiler';
const { ExternalExpr, ExternalReference, WrappedNodeExpr } = pkg;

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 14.1.0-next.0
node: v14.17.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: build & ciRelated the build and CI infrastructure of the project

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions