-
Notifications
You must be signed in to change notification settings - Fork 105
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
dateFns is not defined #30
Comments
If you're using webpack and have the proper loaders configured you can...
|
Please see 7ff9035#diff-11e9f7f953edc64ba14b0cc350ae7b9d for a possible fix. |
@TomKaltz Which loaders are needed? I have the default from Vue CLI, and running |
@RIanDeLaCruz What exactely is the issue? |
@litti a named export was getting errors in the build Solved it by manually adding Vuetiful to my babel-loader. Is there another way? |
I did the following:
I am using Laravel and Laravel Mix though, so YMMV. |
I have the same problem. My
my vue file:
and some js and markup from datatable example. I have error in js console: I think it is better remove dateFns dependency from library and make it optional. |
If you want to use date-fns via Script tag, add this to your HTML file. <script src='https://cdnjs.cloudflare.com/ajax/libs/date-fns/1.27.1/date_fns.min.js'></script> |
When I try to use this, I get an error that says:
Uncaught ReferenceError: dateFns is not defined
at Object.defineProperty.value
The text was updated successfully, but these errors were encountered: