Cannot build with modules only
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?
I guess
Description
I am trying to build our app for modern browsers only (only type=module) but cannot get it working. Using a fresh ng new does not even work. I have created a browserslist in the root containing only βlast 2 chrome versionsβ and left the target at βes2017β (ng g application did that). Even using βes2015β does not work.
π¬ Minimal Reproduction
- ng new test --defaults --no-create-application
- cd test
- ng g application test --defaults
- echo βlast 1 Chrome versionβ > .browserslistrc
- ng build
- cat dist/test/browser/index.html
- No es6 modules generated
π₯ Exception or Error
None
π Your Environment
Angular CLI: 12.2.0
Node: 12.22.2
Package Manager: npm 6.14.13
OS: win32 x64
Angular: 12.2.0
... animations, cli, common, compiler, compiler-cli, core, forms
... 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 6.6.7
typescript 4.3.5
Anything else relevant?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Could not build module - ios - Stack Overflow
Solved it by following: Go to Build settings -> Apple LLVM 7.0 - Language - Modules -> Enable Modules (C and Objective-C) and...
Read more >Could not build Objective-C module 'Firebase'
When I compile the application I get an error equal to this: Could not build Objective-C module 'Firebase' ... There is only one...
Read more >Cannot build PowerShell module with nested folders/files #584
I am containerizing build just right now so I can try different combinations of PowerShellGet and dotnet. I should be able to find...
Read more >JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module syntax.
Read more >Cannot build kgdboe against kernel headers
lsmod lists only one single module, no other modules available to load, how do I proceed? 3 Β· Some questions regarding linux kernel...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In that case, this has been addressed in version 13 which is currently in pre-release stage via the linked PR above.
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.