-
Notifications
You must be signed in to change notification settings - Fork 70
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
"Unexpected token import" error with Angular Universal #146
Comments
any solution for this error? |
Try importing the library directly from ngx-facebook/dist/umd |
I was facing the same problem so I tried the suggested solution of importing from /dist/umd. Then when I import the library directly I get a number of warnings similar to the following when I do ng build --prod: WARNING in ./node_modules/ngx-facebook/dist/umd/components/fb-quote/fb-quote.js 6:24-31 Then when I deploy nothing works with error: Uncaught Error: Cannot find module './components/fb-comment-embed/fb-comment-embed' Any help would be greatly appreciated. |
@aazo11 do you found solution? |
@aazo11 @tebantebanteban found any solution? |
Hi,
I'm getting an error with the ngx-facebook with Angular Universal. Steps to reproduce:
git clone https://github.com/angular/universal-starter.git
.npm i
.npm run build:ssr && npm run serve:ssr
.Result: I get an
SyntaxError: Unexpected token import
error.I created a demo repository in https://github.com/SoftwareAndOutsourcing/universal-starter-ngx-facebook-demo following the above steps.
Thanks.
The text was updated successfully, but these errors were encountered: