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.

cli: 12.2.0 Error: Transformation map 1 must have exactly one source file.

See original GitHub issue

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: 12.1.4

Description

🔬 Minimal Reproduction

🔥 Exception or Error


✔ Browser application bundle generation complete.

Error: Optimization error [main-es2015.580ccf2d9dad4d47d777.js]: Error: Transformation map 1 must have exactly one source file.
Did you specify these with the most recent transformation maps first?
    at buildSourceMapTree (C:\Users\tomaz\Projekti\Gitlab_Arnes\portal-hub\dmsedudoc\frontend\node_modules\@ampproject\remapping\dist\remapping.umd.js:729:23)
    at Object.remapping [as default] (C:\Users\tomaz\Projekti\Gitlab_Arnes\portal-hub\dmsedudoc\frontend\node_modules\@ampproject\remapping\dist\remapping.umd.js:831:23)   
    at default_1 (C:\Users\tomaz\Projekti\Gitlab_Arnes\portal-hub\dmsedudoc\frontend\node_modules\@angular-devkit\build-angular\src\webpack\plugins\javascript-optimizer-worker.js:44:44)
    at async C:\Users\tomaz\Projekti\Gitlab_Arnes\portal-hub\dmsedudoc\frontend\node_modules\piscina\dist\src\worker.js:141:26

🌍 Your Environment


Angular CLI: 12.2.0
Node: 14.16.0
Package Manager: npm 6.14.11
OS: win32 x64

Angular: 12.2.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.0
@angular-devkit/build-angular   12.2.0
@angular-devkit/core            12.2.0
@angular-devkit/schematics      12.2.0
@schematics/angular             12.2.0
rxjs                            7.3.0
typescript                      4.3.5

Anything else relevant?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
sysmatcommented, Aug 9, 2021

@alan-agius4 thx, I was using the wrong config for angular.json

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2021

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

Optimization error [scripts.js]: Error: Transformation map 1 ...
Error : Error: Optimization error [scripts.js]: Error: Transformation map 1 must have exactly one source file.
Read more >
Oracle Data Pump Import
In a schema import, only objects owned by the specified schemas are loaded. The source can be a full, table, tablespace, or a...
Read more >
UNPKG - @angular/core
@angular/core/bundles/core.umd.js.map ... 2.3 MBSource Map (JSON)View Raw ... Each provider must\n * either have a factory or point to a type which has...
Read more >
@angular-devkit/architect | Yarn - Package Manager
The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold,
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
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