268 questions
0 votes
1 answer
299 views
Syntax Error: TypeError: Cannot read properties of undefined (reading 'styles') When migrating to Vue3
I am currently trying to migrate from Vue2 to Vue3 using migration build. When I try to build the project, the following error occurs: Syntax Error: TypeError: Cannot read properties of undefined (...
0 votes
1 answer
246 views
How to use Paged.js in Vue.js2?
let paged = new Previewer(); paged.preview('test', \[\], document.body).then((flow) =\> { console.log("Rendered", flow.total, "pages."); }); Facing issue: 1:1188-1197 export '...
0 votes
0 answers
115 views
i have file csv and separated with semicolon always got errormodule parse failed: unexpected token (2:12)
always show error ERROR in ./public/data-test.csv 2:12 Module parse failed: Unexpected token (2:12) You may need an appropriate loader to handle this file type, currently no loaders are configured to ...
-1 votes
1 answer
509 views
Issue with rendering a component in Laravel Nova after updating dependencies
Hello Stack Overflow community! I'm facing an issue with rendering a component in Laravel Nova after updating dependencies in the project. When trying to open the component in Laravel Nova, I get an ...
2 votes
1 answer
3k views
[Vue warn]: Failed to resolve component: swiper-slide and swiper-container when using Swiper Element
I'm using Swiper Element for slide effects in a Vue app, it works fine but I keep getting these two warnings, [Vue warn]: Failed to resolve component: swiper-slide If this is a native custom element, ...
0 votes
1 answer
785 views
Vue template compile error, "Cannot read properties of undefined (reading '_c')"
I'm working on adding a custom tool to an existing Laravel application using Laravel Nova for the admin panel. The auto generated tool that is created with "php artisan nova:tool vendor/name"...
0 votes
1 answer
139 views
Error when importing json in Vue script block - "module has no exports"
I have a new, very barebones project. If I attempt to import json into my entry file (vanilla .js), it works, eg: import pkg from './package.json'; When I attempt to do the same in a .vue file's <...
0 votes
0 answers
121 views
How to set up webpack only once, to compile multiple vue apps into separate js bundles
I'm trying to configure webpack to compile/bundle small standalone Vue apps (each living in their own separate subdirectory) once, automatically from the top level; instead of setting up webpack ...
0 votes
2 answers
795 views
Update Nodejs 14->18 — webpack have the same syntaxError: /.../xxx.vue: Unexpected token, expected "," (1:8) for ALL Vue 2 components in the project
I updated Nodejs version on my Vue 2 project from 14 to 18 (16 has the same issue). It was fine in the beginning. But, at some point in the last month when I decided to clean up Docker caches, images, ...
1 vote
1 answer
282 views
Lifecycle hooks not working properly in order After migration from vu2 to vue3
The issue is when I switch from Route 1 to Route 2 then First "created" of route2 being called after that "unmounted" of route1. Actually it should be like first "unmounted&...
0 votes
0 answers
49 views
require method images not rendered vue js
**The require method images are not rendered with Vuejs. Even though I've add the vue-loader dependency, and the props are delivered correctly. The template is simple - just an array in App component, ...
2 votes
2 answers
17k views
Vue3 build error: At least one <template> or <script> is required in a single file component
I try to migrate a large existing codebase from Vue2 to Vue3 using Webpack. So I upgraded the necessary packages in package.json to looks like this (no problems here): "vue": "^3.2.45&...
1 vote
1 answer
949 views
Adding *.vue files support to the Shopware 6 Storefront (Module not found: Error: Can't resolve 'vue-loader')
I want to create mini Vue app embedded in the Shopware 6 storefront (inside TWIG ecosystem). So far I have this: MyPluginTheme\src\Resources\app\storefront\build\webpack.config.js const { join, ...
1 vote
0 answers
231 views
V-model is not working in Vue 3 when using SFC with vue loader
v-model works fine when using string templates using template: '<div>....' but doesn't work when using SFC components using <template> element. I am using a custom configuration with ...
12 votes
2 answers
15k views
Vue loader 17.0.0 + Webpack 5.74.0 - Module build failed
I am trying to use vue-loader with my SPA VUE APP, And I'm getting the following error. ERROR in ./app2.vue Module build failed (from ./node_modules/vue-loader/dist/index.js): TypeError: Cannot ...