-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error when using it with JSPM #3
Comments
Hey, Just looking at the error, it seems that you have not included the actual flatpickr library (js and css file) in your project. Could that be your issue? |
@istrau2 Not quite. Actually I have installed it using JSPM install NPM:flatpickr. I guess that you have route to the flatpickr library hardcoded for WebPack and node_modules folder and my library actually is installed in jspm_packages/npm folder when using JSPM. |
Ah, ok. I understand the issue. Well, this feels like something that needs to be solved in the bundler. For example, I know in webpack, you can alias a file so that 'flatpickr' resolves to '/path/to/flatpickr'. Do you have some other idea? |
I've got the same issues |
I'm submitting a bug report
Current behavior:
On JSPM I am getting this error when try to call it with defaults:
aurelia-flatpickr.js:99 Uncaught (in promise) TypeError: _flatpickr2.default is not a constructor
at AureliaFlatpickrCustomElement.attached (aurelia-flatpickr.js:99)
at Controller.attached (aurelia-templating.js:3513)
at View.attached (aurelia-templating.js:1563)
at Controller.attached (aurelia-templating.js:3517)
at DialogRenderer.attach (dialog-renderer.js:132)
at DialogRenderer.showDialog (dialog-renderer.js:208)
at eval (dialog-service.js:78)
at
The text was updated successfully, but these errors were encountered: