Skip to content
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 universal #39

Closed
BlankHrt opened this issue Sep 15, 2017 · 4 comments
Closed

angular universal #39

BlankHrt opened this issue Sep 15, 2017 · 4 comments

Comments

@BlankHrt
Copy link

it not support angular universal

Error: Cannot find module 'ngx-gallery'

@lukasz-galka
Copy link
Owner

Hi @BlankHrt, could you give me more info? Maybe example project? I am not familiar with angular universal.

@BlankHrt
Copy link
Author

hi , look at this tutorial
https://coursetro.com/posts/code/68/Make-your-Angular-App-SEO-Friendly-(Angular-4-+-Universal)
then install universal

@lukasz-galka
Copy link
Owner

Hi @BlankHrt

As I read here https://github.com/angular/universal-starter

For the server bundle you may need to include your 3rd party module into nodeExternals whitelist

you have to include my gallery in nodeExternals.

In repository from your link is also issue Unable to use any third party library designcourse/angular-seo#3 (comment) and here is also nodeExternals

Unforunatelly in your example there is no webpack.config, so I'm not sure how to do it.

Did you add other third part libraries with success? I tried to add angular material but without success.

@BlankHrt
Copy link
Author

I just put your lib into my shared/lib to solve the problem.
you met unexpected import problem?
this is my repo https://github.com/BlankHrt/activity .
it's ok with angular material,jquery in universal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants