Innologica / vue2-daterange-picker

Vue2 date range picker
https://innologica.github.io/vue2-daterange-picker/
MIT License
329 stars 208 forks source link

module not found issue when hard refresh done #6

Closed sudhir600 closed 6 years ago

sudhir600 commented 6 years ago

Hi I found a serious issue. I have a page called sales. in this page, I initialize date picker as described on the doc. Even its working file but only if I am navigating from home URL to sale page then datePicker is working buf if I refresh this page (hard refresh), then I am getting an error.

Cannot find module 'vue2-daterange-picker/src/components/DateRangePicker' from 'C:\development\workspace\project' image

Here is the code-

<script>
import { VueGoodTable } from 'vue-good-table';
import DateRangePicker from 'vue2-daterange-picker/src/components/DateRangePicker'

export default {
    components: {
      VueGoodTable, DateRangePicker
    },
..

And in view

<template>
  <date-range-picker class="dateRange" :startDate="startDate" :endDate="endDate" v-model="dateRange" @input="console.log(value)"></date-range-picker>
</template>
nkostadinov commented 6 years ago

Hm, that's really strange. I don't think it is related to the component itself but will try to simulate the issue in a nuxt project here.

otono commented 5 years ago

Have the same issue on nuxt. After refresh getting "SyntaxError Unexpected identifier" Screenshot from 2019-07-30 11-15-56