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.

"Unexpected value 'TranslateModule' imported by the module 'SharedModule'" Universal Starter

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

screen shot 2017-02-08 at 10 19 21 am

Please tell us about your environment:

  • ng2-translate version: 6.0.0-beta.1

  • Angular version: 2.4.6

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
antonbaradacommented, Feb 21, 2017

I solve it just add @ngx- to includeClientPackages

like in this repo https://github.com/angular/universal-starter/blob/master/webpack.config.ts#L88

0reactions
chriseugenerodriguezcommented, Jun 23, 2017

@markelarizaga cant have service side code for client side render.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected value 'TranslateModule' imported by the module ...
I got the same issue. I was missing the below config in jest.config.js file. globalSetup: 'jest-preset-angular/global-setup'.
Read more >
"Unexpected value 'TranslateModule' imported by the module ...
"Unexpected value 'TranslateModule' imported by the module 'SharedModule'" Universal Starter.
Read more >
@ngx-translate/core NPM | npm.io
1. Import the TranslateModule : Finally, you can use ngx-translate in your Angular project. You have to import TranslateModule.forRoot() in the root NgModule...
Read more >
Unexpected value 'TranslateModule' imported by the module ...
But I get this error: Unexpected value 'TranslateModule' imported by the module 'DynamicTestModule'. Please add an @NgModule annotation.
Read more >
angular/angular - Gitter
@losorio2015_twitter https://github.com/angular/universal-starter ... Error: Unexpected value '[object Object]' imported by the module ...
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