-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Error | Could not find plugin "proposal-numeric-separator" | Generating ES5 bundles for differential loading #17262
Comments
Try to install |
Babel versions 7.8.0-7.8.6 contain a defect that can cause failures due to babel plugin changes (even in patch versions). Plugins are not pinned as they are transitive dependencies of the packages adjusted in this commit. This failure will prevent a newly generated project from building and can only be worked around by disabling differential loading. Fixes: angular#17262
This is don't work for me... |
I was able to build by disabling generating ES5 bundles for differential loading by setting
in packages.json, and
in angular.json |
This also worked for me. I was getting this error when building an image for an Angular 8 Universal app with docker. I also followed the steps listed in this react thread to use npm resolutions. facebook/create-react-app#8680. Not sure if the resolutions step is needed because it wasn't until I added @babel/compat-data to my devDependencies that the issue was resolved. I would first just try adding @babel/compat-data to devDependencies. |
This also worked for me. I want to add that the error didn't show up locally, but only when i used Azure Devops. I think DevOps bumps up the babel versions |
this(npm i @babel/compat-data@7.8.0) works for me! thanks @keitoaino |
This also worked for me. Be sure to use exactly this version. Pay attention to the version. Firstly I automatically installed |
@judedaryl this could be also related to |
just installing
|
Sticking to previous version of
|
This worked for me. Is this considered a temporary solution? Should we keep a watch on this and remove it later? |
Rocks! |
Worked for me!! Do we need to remove it manually after the fix or will be handled in the internal devDependencies? |
@morinellipy @gs-nchakravarthi yes, we need to keep this only until issue will be fixed. Then it will be needed to remove |
"@babel/compat-data": "~7.8.0" suggestion from the comment above solved the problem. I believe it will be fixed soon since the issue has been reported yesterday. |
Thanks men this is also work for me |
I'm using nrwl workspace with angular@^8.2.0(the angular cli version is 8.3.14 in the yarn.lock) and I having the same issue. I've tried all the work arounds under this thread and none of them works for me, not until I tried adding "resolutions": {
"@babel/preset-env": "^7.8.7"
}, See: create-react-app Issue #8860 I hope this will help someone who still having issue after trying all above, like me. And I'm looking forward for the fix. |
The problem is preseent also with angular 8 |
The following worked for me too:
Code example (from package.json):
|
All above was not working for me. Then changed file (And that is what is ugly, because it won't work if you reinstall modules): By adding: And at the bottom, in the _default array, adding: |
this did not work for me as well.. but this did..
|
CICD Use Case
I clone the repo to remove the package lock and the I add this suggestion from above to my FROM custom-registry/nodejs-devops:12-lts_v2.0.0 as node
WORKDIR /app
COPY . .
#################################################
RUN npm install && npx npm-force-resolutions
##################################################
ENV NODE_ENV=production
RUN npm run build
FROM custom-registry/nginx-devops:1.16-lts_v2.0.0
EXPOSE 8080
COPY --from=node /app/dist /usr/share/nginx/html |
Can confirm that manually adding "@babel/compat-data": "~7.8.0" to the devDependencies works. You need to explicitly tell it to use version 7.8.0 (using ~ rather than ^) since any newer versions will not work. |
For anyone experiencing this issue, Angular CLI 8.3.26 has been released with an update to the babel versions. No workarounds should be necessary after an update. When updating, please ensure that the If anyone is still encountering issues after an update, please open a new issue with details regarding your environment and project versions. |
Results of
|
works for me too (Y) thanks |
npm i @babel/compat-data@7.8.0 this worked fine. thanks |
I had the same problem, when building angular app. I just updated my packages and then it worked. |
1.delete node_modules and package-lock.json |
* before merging with default vanilla project * working version bug outdated * working version with ng8, ag-grid and netcore3.1 * adding database location and themes to aggrid * tests with wsl2 * adding new docker commands for wsl * adding babel to let ng build complete, bug documented here: angular/angular-cli#17262 * working version with vscode debugger * adding objects and shares controller * adding contact controller * remove item controller, new tables * working objects FE and BE * adding generic crud historical, missing generic service layer * adding release notes and breaking changes * merge conflict Co-authored-by: lonesomegeek <lonesomegeek@outlook.com>
I solved this problem as follows:
in package.json. |
got this error while running ng build.
|
Ran: npm i @babel/compat-data@7.8.0 See: angular/angular-cli#17262 (comment) Note that 2 commits ago, I tried to fix 2 critical npm audit vulnerbilities' The fix involved upgrading to @angular-devkit/build-angular@0.901.1/ But then caused a compile error which was fixed by doing this: npm install --save-dev @angular-devkit/build-angular@0.803.24
* before merging with default vanilla project * working version bug outdated * working version with ng8, ag-grid and netcore3.1 * adding database location and themes to aggrid * tests with wsl2 * adding new docker commands for wsl * adding babel to let ng build complete, bug documented here: angular/angular-cli#17262 * working version with vscode debugger * adding objects and shares controller * adding contact controller * remove item controller, new tables * working objects FE and BE * adding generic crud historical, missing generic service layer * adding release notes and breaking changes * merge conflict * rework classes * reverting items to normal crud * put back on track shares controller * adding contributor * all working endpoints without dto for now * working version of generic components * working with sub component * historical crud component ready, missing dynamic form * dynamic listing and form * adding showHistory * little cleanup * adding the other entities * before cleanup in crud components * refactoring in components * adding blog posts * move files * adding sample database project * adding contributor about page * almost done for the v1 of the UI * change naming of services in dto lib * putting in place de dto layers * Adding dependencies * converting to json * users with dto * blog post with DTO * update to existing tables * hooks online * Change log level * adding production setup for SQL * docker build image * remove trigger Co-authored-by: lonesomegeek <lonesomegeek@outlook.com>
Helped me as well. |
* first draft, remove all <> * rework unit tests to work with new structure * Work/22 (#104) * remove sync methods from service layer * remove useless tests * cleanup in sonar cube things (#105) * Work/duge/85 (#106) * massive cleanup of previous samples * adding new samples structure * Work/duge/86 (#115) * massive cleanup of previous samples * adding new samples structure * remove extension project * Work/duge/85 (#116) * massive cleanup of previous samples * adding new samples structure * remove extension project * cleanup in sonar cube things (#117) * clean up nonasync things (#118) * Work/duge/88 (#119) * adding new build file * default netcore * ignore unsupported projects * Update azure-pipelines.yml for Azure Pipelines * adding pack and publish * adding pack and publish * adding pack and publish * adding pack and publish * adding pack and publish * adding pack and publish * adding pack and publish * adding pack and publish * Update azure-pipelines.yml for Azure Pipelines * adding pack and publish * adding pack and publish * inject nuget api key from variable group * inject nuget api key from variable group * inject nuget api key from variable group * inject nuget api key from variable group * inject nuget api key from variable group * add environment * adding environment deployment * adding environment deployment * adding environment deployment * adding environment deployment * adding environment deployment * adding build directory * adding build directory * adding build directory * adding build directory * adding build directory * adding build directory * adding build directory * adding build directory * adding build directory * Update azure-pipelines.yml * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * Update build.yml * Update build.yml * Update build.yml * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * refactor release and build * interface cleanup begun (#120) * interface cleanup begun * cleanup done * create an injectable option object for service layer (#121) * create an injectable option object for service layer * extra line cleanup * Work/duge/99 (#122) * create an injectable option object for service layer * extra line cleanup * adding files ready for netcore 3.1 (#123) * rework base classes and cleanup (#132) * Work/duge/97 (#133) * bug in master branch * adding benchmark files * Work/duge/95 (#134) * adding material to test IEntity vs BaseEntity * cleanup in samples * putting in on track * whant ignoring fields from changeset, ICreated and IModified is working * working version with context and ignoreinchangeset attribute@ * Work/duge/94 (#137) * adding files before waiting for the samples * 2 different service layers * ability to inject by model * adding more documentation on custom layers * adding more documentation * adding initial sequence diagrams * adding more doc on custom layers * adding new version of sequence diagram * Update sequence.drawio * Update sequence.drawio * Update sequence.drawio * test before odata: * updated sequence diagram * adding PNG printouts of the schemas * more sequence diagrams and docs Co-authored-by: lonesomegeek <lonesomegeek@outlook.com> * Work/duge/94 (#138) * adding files before waiting for the samples * 2 different service layers * ability to inject by model * adding more documentation on custom layers * adding more documentation * adding initial sequence diagrams * adding more doc on custom layers * adding new version of sequence diagram * Update sequence.drawio * Update sequence.drawio * Update sequence.drawio * test before odata: * updated sequence diagram * adding PNG printouts of the schemas * more sequence diagrams and docs * adding some docs in the main readme file@ * before merging with yden063 commit * adding last doc for now Co-authored-by: lonesomegeek <lonesomegeek@outlook.com> * changing the commit mode of crud dto service layer (without historical crud) * Work/duge/92 (#140) * before merging with default vanilla project * working version bug outdated * working version with ng8, ag-grid and netcore3.1 * adding database location and themes to aggrid * tests with wsl2 * adding new docker commands for wsl * adding babel to let ng build complete, bug documented here: angular/angular-cli#17262 * working version with vscode debugger * adding objects and shares controller * adding contact controller * remove item controller, new tables * working objects FE and BE * adding generic crud historical, missing generic service layer * adding release notes and breaking changes * merge conflict Co-authored-by: lonesomegeek <lonesomegeek@outlook.com> * adjusting unit tests to new v5 structure (#141) Co-authored-by: lonesomegeek <lonesomegeek@outlook.com> * Work/duge/102 (#142) * rework tutorials * change samples * move files to a more structure folder structure * more doc * more doc * move files to new folders * enough doc for samples Co-authored-by: lonesomegeek <lonesomegeek@outlook.com> * Work/duge/102 (#143) * rework tutorials * change samples * move files to a more structure folder structure * more doc * more doc * move files to new folders * enough doc for samples Co-authored-by: lonesomegeek <lonesomegeek@outlook.com> * Work/duge/92 (#144) * before merging with default vanilla project * working version bug outdated * working version with ng8, ag-grid and netcore3.1 * adding database location and themes to aggrid * tests with wsl2 * adding new docker commands for wsl * adding babel to let ng build complete, bug documented here: angular/angular-cli#17262 * working version with vscode debugger * adding objects and shares controller * adding contact controller * remove item controller, new tables * working objects FE and BE * adding generic crud historical, missing generic service layer * adding release notes and breaking changes * merge conflict * rework classes * reverting items to normal crud * put back on track shares controller * adding contributor * all working endpoints without dto for now * working version of generic components * working with sub component * historical crud component ready, missing dynamic form * dynamic listing and form * adding showHistory * little cleanup * adding the other entities * before cleanup in crud components * refactoring in components * adding blog posts * move files * adding sample database project * adding contributor about page * almost done for the v1 of the UI * change naming of services in dto lib * putting in place de dto layers * Adding dependencies * converting to json * users with dto * blog post with DTO * update to existing tables * hooks online * Change log level * adding production setup for SQL * docker build image * remove trigger Co-authored-by: lonesomegeek <lonesomegeek@outlook.com> * Work/duge/93 (#145) * cleanup + doc * cleanup * adding doc * working links * good dockerfile * minor corrections Co-authored-by: lonesomegeek <lonesomegeek@outlook.com> * ready for beta1 * adjust project definitions * adding old sample links * adding release notes * minor modifications * minor modifications * adding benchmark project launcher * cleanup * cleanup in docs * minor modifications * minor modifications * prepare for v5 Co-authored-by: lonesomegeek <lonesomegeek@outlook.com>
Ran: npm i @babel/compat-data@7.8.0 See: angular/angular-cli#17262 (comment) Note that 2 commits ago, I tried to fix 2 critical npm audit vulnerbilities' The fix involved upgrading to @angular-devkit/build-angular@0.901.1/ But then caused a compile error which was fixed by doing this: npm install --save-dev @angular-devkit/build-angular@0.803.24
Same for me, started experiencing this error after updating an Ionic 4 app to Ionic 5 and building with Ionic Pro. All fine after adding this. |
Thank you. This worked for me as well |
|
…p), and beacon app; and resolved regression introduced by babel/compat-data (angular/angular-cli#17262) Aggregated commits from 2020.03.03 to 2020.03.20 - Support for coronavirus app - Preliminary support for Google Maps - Added the condition to hide the app switcher if there is only one accessible app - Implemented the condition to hide the sidebar if there is only one submodule available - Preliminary support for Bing Maps - Moved terms into its own menu - Nextstrain integration and small style fixes - Added attribution for GISAID - Added attribution of NGDC - Parameterized COVID Beacon Url - Ensured that the first query is triggered on initialization - Preliminary UX updates - Synchronize query params with URL and initiate search automatically - Make mouse a hand over clickable rows - Fixed the error/warning on bi-directional binding, unused reference, hid the info panel by default, and make the button explicitly do something (instead of 'toggle') - Do search on enter - When the search starts, deactivate the search box - Dynamically set mobile state if necessary - Turn off pagination on mobile - Reduced self-referencing and local variables and ensure that when the row is selected, the details panel is automatically displayed. - When the user clicks on a row (cell), the info panel is auto-displayed. - Replaced how the sidebar is able from relying on the number of submodules to the property of the module metadata. - Added the test for Workflow Registry - Added the test for COVID-19 beacon - Removed the default title. (COVID-23) - Implemented Google Analytics by injecting to <head> (COVID-8) - Introduced dynamic theme (COVID-20)
I've tried all the various suggestions listed above and none of them are working for me.
Contents of package.json
And I still end up with the same error
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
1 similar comment
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: a few hours agoDescription
A clear and concise description of the problem...Build doesn't work
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
facebook/create-react-app#8680
The text was updated successfully, but these errors were encountered: