-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
AOT/ngc: config._d.getTime is not a function -> can't import Modules from 'ng2-bootstrap/ng2-bootstrap' #1179
Comments
u should post your package.json。 |
Sorry for the delay in response, I am using the latest version on npm: 1.1.16 here are my dependencies:
|
let me know if I can provide any more info |
@goleary can you drop rollup config? and search issues about rollup? usually commonjs plugin is missing |
I searched around and tried the solution here: #1188 but it didn't fix the problem. I wouldn't say this is high priority as I already used the other import statement to get it working, I'm just curious why it isn't working as advertised in the docs rollup config:
|
from v1.1.16-9 and ng v2.4 |
Thanks, I'll try the upgraded version later today! |
just curious, I've never seen major.minor.patch-# versions on npm before. I had to remove and reinstall the package just to get the new code (instead of updating as I am using 6 operator on version in package.json). Is this to be expected or is there some problem? |
This versioning is achieved via npm version pre-release, actually it is just a semver |
when I try
import { CarouselModule } from 'ng2-bootstrap/ng2-bootstrap'
it builds correctly but I get the following runtime error:The same happens for the TooltipModule (haven't tested any others).
If i use
import { CarouselModule } from 'ng2-bootstrap/component/carousel'
however it works fine.I see in the documentation that one can use either method? why does one of them fail?
NOTE: I am using ngc for AOT compilation & Rollup for tree shaking prior to seeing the error, haven't tested without.
The text was updated successfully, but these errors were encountered: