-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Angular update issue. ( from 7.2.15 to 8.2.3 ) #32333
Comments
Hi, Thanks for reporting this, this is due to a breaking change in To fix the issue, you need to use the default export. From const translations = require('raw-loader!./i18n/messages.ko.xlf'); To const translations = require('raw-loader!./i18n/messages.ko.xlf').default; |
I am going to transfer this to the angular/angular repo to fix the docs in |
…32334) `raw-loader` version 2+ which is used in the CLI version 8 introduced a breaking change and now uses `export default` instead of `module.exports`. See: https://github.com/webpack-contrib/raw-loader/blob/master/CHANGELOG.md#200-2019-03-18 Closes #32333 PR Close #32334
Thank you! |
…ngular#32334) `raw-loader` version 2+ which is used in the CLI version 8 introduced a breaking change and now uses `export default` instead of `module.exports`. See: https://github.com/webpack-contrib/raw-loader/blob/master/CHANGELOG.md#200-2019-03-18 Closes angular#32333 PR Close angular#32334
…ngular#32334) `raw-loader` version 2+ which is used in the CLI version 8 introduced a breaking change and now uses `export default` instead of `module.exports`. See: https://github.com/webpack-contrib/raw-loader/blob/master/CHANGELOG.md#200-2019-03-18 Closes angular#32333 PR Close angular#32334
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?
No
Description
I updated angular version with
ng update @angular/cli @angular/core
command from 7.2.15 to 8.2.3Compiling is fine.
But when i access to localhost:4200, console error occurs that Uncaught TypeError : StaticInjectorError[Compiler -> CompileMetadataResolver -> HtmlParser -> I18NHtmlParser]:
this.input.charCodeAt is not a function [compiler.js:9372]
the compiler.js file is in
webpack:///./nodemodules/@angular/compiler/fesm2015/compiler.js
I debugged this through Call Stack.
the topmost Call stack is in
main.ts
It points
I use this function for
i18n
of JIT purpose🔬 Minimal Reproduction
You can find my minimal reproduction through https://github.com/RayKimEX/angular-issue.
Please see
How to generate issue
section my README.md file🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
No.
The text was updated successfully, but these errors were encountered: