Skip to content

Commit

Permalink
Issue xkjyeah#799 changed implementation include syntax to work with …
Browse files Browse the repository at this point in the history
…Vite
  • Loading branch information
Halling69 committed Jul 4, 2024
1 parent 8d6bbac commit 3fdf013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/place-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
</label>
</template>

<script src="../components-implementation/place-input.js">
<script>
export default ((x) => x.default || x)(require('../components-implementation/place-input'))
</script>

3 comments on commit 3fdf013

@ArneMangelschots
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! I'm also trying to migrate a project that uses vue2-google-maps to vite, i'm trying to use your fork with this fix, but it still gives me the following error.
Uncaught ReferenceError: require is not defined at info-window.vue:2:19
are you maybe willing to share your vite.config.js ?

Thanks in advance!

@yopaz-datdn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Halling69

Hello! I'm also trying to migrate a project that uses vue2-google-maps to vite, i'm trying to use your fork with this fix, but it still gives me the following error. Uncaught ReferenceError: require is not defined at info-window.vue:2:19 are you maybe willing to share your vite.config.js ?

Thanks in advance!

me too, please share your vite.config.js
Thanks in advance!
Image

@Halling69
Copy link
Owner Author

@Halling69 Halling69 commented on 3fdf013 Nov 11, 2024 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.