question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error building project using artifacts created from angular source code build

See original GitHub issue

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

Don’t known / other

Is this a regression?

No

Description

In order to inestigate https://github.com/angular/angular/issues/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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:22 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Sep 13, 2022

Yeah, you can mention that you need to run ng cache disable.

0reactions
angular-automatic-lock-bot[bot]commented, Oct 28, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting AWS CodeBuild
Apache Maven builds reference artifacts from the wrong repository. Issue: When you use Maven with an AWS CodeBuild-provided Java build environment, ...
Read more >
Angular project CI in azure devops giving error 'Publishing ...
Angular project CI in azure devops giving error 'Publishing build artifacts failed with an error: ' - Stack Overflow. Stack Overflow for Teams ......
Read more >
Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >
Deployment - Angular
Build your project using the GitHub project name, with the Angular CLI command ng build and the following options, where your_project_name is the...
Read more >
Troubleshoot pipeline runs - Azure DevOps - Microsoft Learn
Verify the built-in service identity has permission to download the sources. Either the identity Project Collection Build Service or Project ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found