Replies: 3 comments 2 replies
-
The error seems about using require. Have you tried using import at the top of the file? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@posva, I have exactly the same error when trying to use Vue CLI.
--->
This file is located in the "public" folder
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I also encountered this problem. 😞 @posva I found out that can be fixed by adding the following script to // TODO: is it worth having a loadInclude?
+ loadInclude(id) {
+ return id.endsWith('.html') === false
+ }, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My
vue.config.js
contains:But that gives me the following build error:
If I do
require("unplugin-vue-router/webpack").default({ routesFolder: "src/views" })
then it loads in fine at least, but then I get:The HTML file it's referencing is in a different dir to all my
.vue
pages, so I'm confused why this plugin is even trying to process it. Any ideas?Beta Was this translation helpful? Give feedback.
All reactions