Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with library dependency #25403

Closed
1 task done
zehavibarak opened this issue Jun 20, 2023 · 10 comments
Closed
1 task done

Build error with library dependency #25403

zehavibarak opened this issue Jun 20, 2023 · 10 comments

Comments

@zehavibarak
Copy link

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

16.0.4

Description

We're developing a library package that is locally hosted in a test app.
Building the library works. However, while running build on the app, we're getting:

Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/tools/babel/webpack-loader.js): column must be greater than or equal to 0 (columns start

This is a regression from previous version.

Minimal Reproduction

Not sure where the issue here.

Exception or Error

No response

Your Environment

Angular CLI: 16.1.0
Node: 18.16.0
Package Manager: npm 9.6.6
OS: win32 x64

Angular: 16.1.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic
... platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1601.0
@angular-devkit/build-angular   16.1.0
@angular-devkit/core            16.1.0
@angular-devkit/schematics      16.1.0
@angular/cli                    16.1.0
@nguniversal/express-engine     16.1.0
@schematics/angular             16.1.0
ng-packagr                      16.1.0
rxjs                            7.8.1
typescript                      5.1.3
webpack                         5.87.0

Anything else relevant?

Thanks

@zehavibarak
Copy link
Author

ng build my-library

OK!

ng build

Generating browser application bundles...
Browser application bundle generation complete.

ERROR!

@zehavibarak
Copy link
Author

I'm not using i18n, not intentionally.

@alan-agius4
Copy link
Collaborator

Duplicate of #25414

@alan-agius4 alan-agius4 marked this as a duplicate of #25414 Jun 22, 2023
@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 22, 2023
@zehavibarak
Copy link
Author

Duplicate of #25414

This may not be that. Unable to compile still on @angular/compiler-cli@16.1.3

@zehavibarak
Copy link
Author

@alan-agius4 please keep this issue open.

@alan-agius4
Copy link
Collaborator

This does look like #25414 which is still open.

If you believe it’s not, kindly provide a minimal reproduction that we can take a look at, as it is currently missing from this issue which makes this in actionable.

@zehavibarak
Copy link
Author

zehavibarak commented Jul 4, 2023

Please see reproduction of this issue.

Library causing this is @bizdoc-apps/business-trip. It compiles by itself, but yield the error above when added as dependency.

@zehavibarak
Copy link
Author

@alan-agius4 per repro above, please leave this open.

@alan-agius4
Copy link
Collaborator

Let’s keep tracking this in #25414 as it’s the same root cause.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants