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

strictdi error on version 5.1.3 #57

Closed
Andrew-Lahikainen opened this issue Sep 14, 2017 · 1 comment
Closed

strictdi error on version 5.1.3 #57

Andrew-Lahikainen opened this issue Sep 14, 2017 · 1 comment

Comments

@Andrew-Lahikainen
Copy link

I'm getting the following error:
screen shot 2017-09-14 at 2 46 53 pm

It seems the package.json main property is pointing to a file that requires all the components of this package. Shouldn't this point to a transpiled version of your library? Otherwise I need to have babel and the ng-annotate plugin in order to use this.

If I import "angular-datetime-input/dist/datetime" directly I get this error:

screen shot 2017-09-14 at 3 03 02 pm

Any way to resolve this?

@eight04
Copy link
Owner

eight04 commented Sep 14, 2017

This repository contains:

  • source code
    • written with implicit DI notation
    • es6
  • a pre-built dist, which is transpiled with
    • browserify
      • custom-input module is excluded from the build and shimmed with global variable customInput. You'll need to import it manually
    • babel (target IE8)
    • ng-annotate

You can resolve the second error by importing custom-input module manually.

For the first error, we should switch to explicit notation, however you still need to use babel if you want to transform es6 syntax.

@eight04 eight04 mentioned this issue Sep 16, 2017
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

2 participants