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

Warning when running ng serve #23

Closed
YoeriNijs opened this issue Jan 2, 2017 · 3 comments
Closed

Warning when running ng serve #23

YoeriNijs opened this issue Jan 2, 2017 · 3 comments

Comments

@YoeriNijs
Copy link

YoeriNijs commented Jan 2, 2017

Currently, I receive a warning when Angular2-hotkeys is running with ng serve:

WARNING in ./~/angular2-hotkeys/src/services/hotkeys.service.ts
160:62 export 'IHotkeyOptions' was not found in './../models/hotkey.options'

I checked hotkey.options and it seems there is nothing wrong with the interface IHotkeyOptions. It is exported successfully.

import { OpaqueToken } from '@angular/core';

export interface IHotkeyOptions {
  /**
   * Disable the cheat sheet popover dialog? Default: false
   */
  disableCheatSheet?: boolean;
  /**
   * Key combination to trigger the cheat sheet. Default: '?'
   */
  cheatSheetHotkey?: string;
  /**
   * Description for the cheat sheet hot key in the cheat sheet. Default: 'Show / hide this help menu'
   */
  cheatSheetDescription?: string;
};
export const HotkeyOptions = new OpaqueToken('HotkeyOptions');

Maybe one knows what is going wrong here.

@anrepppp
Copy link

anrepppp commented Jan 2, 2017

+1

@anrepppp
Copy link

anrepppp commented Jan 9, 2017

@brtnshrdr
Nick, we are seeing a warning in our console related to the hotkeys plugin. Can you please take a look at it when you get a chance?

WARNING in ./~/angular2-hotkeys/src/services/hotkeys.service.ts
160:96 export 'IHotkeyOptions' was not found in './../models/hotkey.options'

@isaacplmann
Copy link
Contributor

The warning is because of this issue in angular-cli. The real issue here is that there are *.ts files in the npm package. If those are removed, this warning will go away. I'll work on a PR to solve that.

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