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.

Compiler Failing in Linux but not Windows

See original GitHub issue

Affected Package

angular-devkit

Is this a regression?

Idk

Description

Compiler fails on build in Linux. The project was created on Windows where the build does work.

🔬 Minimal Reproduction

Here is the repository: https://github.com/phantomcosmonaut/angular-gitapi I run an Ubuntu container in Docker with the latest version of npm, clone the repo, do an npm install for all the dependencies and then run ng build or npm run build. I’ve also tried verbose logging but it didn’t help. Other than that I don’t know how to reproduce this build issue

🔥 Exception or Error


[error] Error: NGCC failed.
at NgccProcessor.process (/home/angular-gitapi/node_modules/@ngtools/webpack/src/ngcc_processor.js:69:19)
at compiler.hooks.environment.tap (/home/angular-gitapi/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:576:31)
at SyncHook.eval [as call] (eval at create (/home/angular-gitapi/node_modules/tapable/lib/HookCodeFactory.js:19:10), :9:1 )
at SyncHook.lazyCompileHook (/home/angular-gitapi/node_modules/tapable/lib/Hook.js:154:20)
at Object.webpack [as webpackFactory] (/home/angular-gitapi/node_modules/webpack/lib/webpack.js:55:30)
at createWebpack (/home/angular-gitapi/node_modules/@angular-devkit/build-webpack/src/webpack/index.js:20:36)
at Object.runWebpack (/home/angular-gitapi/node_modules/@angular-devkit/build-webpack/src/webpack/index.js:34:12)
at SwitchMapSubscriber.rxjs_1.from.pipe.operators_1.switchMap [as project] (/home/angular-gitapi/node_modules/@angular-devkit/build- angular/src/browser/index.js:142:32)
at SwitchMapSubscriber._next (/home/angular-gitapi/node_modules/rxjs/internal/operators/switchMap.js:49:27)
at SwitchMapSubscriber.Subscriber.next (/home/angular-gitapi/node_modules/rxjs/internal/Subscriber.js:66:18)
at /home/angular-gitapi/node_modules/rxjs/internal/util/subscribeToPromise.js:7:24 at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

🌍 Your Environment

Angular Version:


Angular CLI: 10.0.6
Node: 10.19.0
OS: linux x64

Angular: 10.0.9
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1000.6
@angular-devkit/build-angular     0.1000.6
@angular-devkit/build-optimizer   0.1000.6
@angular-devkit/build-webpack     0.1000.6
@angular-devkit/core              10.0.6
@angular-devkit/schematics        10.0.6
@angular/cli                      10.0.6
@ngtools/webpack                  10.0.6
@schematics/angular               10.0.6
@schematics/update                0.1000.6
rxjs                              6.5.5
typescript                        3.9.7
webpack                           4.43.0

Anything else relevant? No

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
petebacondarwincommented, Aug 17, 2020

OK, I think we can close this then?

0reactions
angular-automatic-lock-bot[bot]commented, Oct 2, 2020

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

C Program will compile and run in Linux but not Windows
C Program will compile and run in Linux but not Windows · 1. In Windows, how exactly are you compiling and running this...
Read more >
Fix program errors and improve code - Visual Studio (Windows)
This article describes some basic ways Visual Studio can help you find and fix problems in your code, including build errors, code analysis, ......
Read more >
Linux compilation does not work, results in error: No such file ...
Linux compilation does not work, results in error: No such file or directory - Visual Studio Feedback.
Read more >
Troubleshooting — conan 1.56.0 documentation
ERROR: The recipe wtl/10.0.9163 is constraining settings. Invalid setting 'Linux' is not a valid 'settings.os' value. Possible values are ['Windows'] Read ...
Read more >
I am failing to cross compile from Linux to Windows - Reddit
Of course you can also use mingw on windows to do the same, but VS on windows is literally the easy ... Cmake...
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