V-calendar: es6 javascript module build

Created on 21 May 2019  路  5Comments  路  Source: nathanreyes/v-calendar

Is it possible to generate a es6 javascript browser module build compatible with the vue.esm.browser.js build?

Most helpful comment

Also having issues when trying to register it in a SFC:

import { setupCalendar, Calendar } from 'v-calendar'

setupCalendar({ ... })

export default {
  components: { Calendar }
}

Gives me the same error (TypeError: t is not a constructor).
There's no errors when registering it globally though.

I'm on version 1.0.0-beta.14

All 5 comments

Not that I know of, with Vue CLI anyways. That would be convenient for local testing.

I haven't investigated much further than that though

I have issue with es6 vue: TypeError: t is not a constructor

This precludes using 1.0 in Nuxt

Also having issues when trying to register it in a SFC:

import { setupCalendar, Calendar } from 'v-calendar'

setupCalendar({ ... })

export default {
  components: { Calendar }
}

Gives me the same error (TypeError: t is not a constructor).
There's no errors when registering it globally though.

I'm on version 1.0.0-beta.14

I'm having the same issue.

Before I was using 0.9.2 and I can use it locally in my component. I just need to call setupCalendar() in created hook.

After upgrade to 1.0.0-beta.16, register globally is the only way to use it.

What is the current status? Looks like it haven't been solved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garygreen picture garygreen  路  3Comments

jeffster9 picture jeffster9  路  3Comments

sokolovdm picture sokolovdm  路  3Comments

Nadavrbn picture Nadavrbn  路  3Comments

eafomi4ev picture eafomi4ev  路  3Comments