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

start:server getting "SyntaxError: Unexpected token import" with some 3rd party libraries #12

Closed
cj-wang opened this issue Mar 12, 2019 · 2 comments

Comments

@cj-wang
Copy link

cj-wang commented Mar 12, 2019

Thanks for the great example!
I'm having a small issue here, the dev server stops working with some 3rd part libraries, e.g. Nebular.
Issue can be reproduced here: https://github.com/cj-wang/universal-nest/tree/nebular

import { InjectionToken } from '@angular/core';
^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.@nebular/theme/theme.options 
@alex-osman
Copy link

Having this problem with many 3rd party libraries as well

@kamilmysliwiec
Copy link
Member

This issue is not related to Nest itself. I'd suggest looking here angular/angular-cli#7200

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

3 participants