-
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
Babel error during localized bundle generation v9.0.0-rc.10 #16781
Comments
This might be caused by |
Can you show what version of each of the |
Well, downgrading I think the issue is still actual as constatint in |
This might well be fixed by angular/angular#34974, which is currently on master and should come out in the next RC. |
This might help too angular/angular#35008 |
What about adding a |
Ah that will be a bug in |
Interestingly the version in
|
The latest version of Babel (e.g. 7.8.3) requires a filename to be passed to `parseSync()`. Fixes angular#16781
See #16782 |
I need this babel.config for my subpakages in mono-repo which use jest for testing, so this config has absolutely nothing in common with angular-cli |
So yes, deleting It also proves that problem not related to the version of bable. |
ast = parseSync(options.code, {
babelrc: false,
sourceType: 'script',
configFile: false,
}); Adding |
The latest version of Babel (e.g. 7.8.3) requires a filename to be passed to `parseSync()`. Fixes #16781
The latest version of Babel (e.g. 7.8.3) requires a filename to be passed to `parseSync()`. Fixes #16781
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, this is a kind of regression. I'm not sure about the root cause, it worked well in one of my previous setups with earlier RC versions. This might be as regression in AngularCli itself or because of different babel versions which I might install.
Description
An error:
The error came from
packages/angular_devkit/build_angular/src/utils/process-bundle.ts:614
And obviously caused by lacking
filename
param.A clear and concise description of the problem...
🔬 Minimal Reproduction
To reproduce just add locales into
angular.json
i18n.locales
and turn onlocalize
in project options(simplified angular.json)
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: