-
Notifications
You must be signed in to change notification settings - Fork 12k
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
import of bowser and moment broken with 1.6.2 #8974
Comments
When you upgraded the project did the bowser package get updated as well? From looking at the project’s change log, it looks like the latest minor version made changes to its typings. |
I already checked that option. The version of Bowser changed from 1.8.1 to 1.9.0. But I was able to upgrade this single dep without code changes, while staying on angular 5.1.1. |
1.9.1 just came out (today) and the only item in the change log is “fixed” typings.d.ts |
Thanks, I will check it out and keep you posted. |
I'm not able to get 1.9.1 yet with npm, since it's still so new. But I rolled back to version 1.8.1 and I still get the same error. I also looked at the changes to the typings and they only added a property. |
Also, for information related to packaging an angular library, please see here: https://goo.gl/jB3GVv |
I had a similar issue when using js-cookie. |
Downgrading angular-cli to 1.6.1 temporarily fixes the problem for me as well. I also tested 1.6.3, but this didn't help. |
This appears to be a duplicate of #9058. Please follow that issue for further updates. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I use moment and bowser in a component in my project. The import of these libraries worked before upgrading from angular 5.1.1 and angular-cli 1.6.1 to angular 5.1.2 and angular-cli 1.6.2.
Versions
Other versions
Repro steps
Observed behavior
Desired behavior
The bowser import no longer seems to work. The component is part of a custom library we maintain that is packaged with rollup. We had some issues using import statements with the following form:
import * as bowser from bowser
They worked as long as the app wasn't packaged as a library. If our applications imported the library, the imports caused issues. Switching to the imports in this form fixed that issue:
import bowser from bowser
But now, the latest version of angular-cli seems to have issues with these import statements.
The text was updated successfully, but these errors were encountered: