268 questions
0
votes
1
answer
284
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
0
answers
110
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 ...
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
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
2
answers
792
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, ...
0
votes
0
answers
48
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, ...
1
vote
1
answer
942
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, ...
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 ...
-1
votes
1
answer
2k
views
Enable Typescript in SFC: Laravel 9 + vite + vue-loader
I wanted to create a project using this github repo as a base:
https://github.com/suresh-ramani/laravel-vue3-vite
The repo essentially enables a Laravel 9 full stack server-side rendered application ...
0
votes
0
answers
226
views
Problems with configuring my project to be able to use VueJs single page components
I have my VueJS project and I want to use VueJs single page components in it.
The project is desired to be CRUD application that works with PotrgeSQL tables so it has all corresponding dependencies.
...
0
votes
1
answer
528
views
Vue2 Template compiler broken?
I compile my code via webpack(^5.51.1) and vue-loader(^17.0.0) and I tried firing up an old project and it's giving me this error:
[webpack-cli] Failed to load '/var/www/webpack.config.js' config
[...
2
votes
0
answers
1k
views
Cannot find module 'vue-loader/lib/loaders/pitcher' into webpack electron app
My webpack dev server which need to launch electron app generate this error :
Cannot find module 'vue-loader/lib/loaders/pitcher'
I installed the next version of vue-loader because I'm in vueJS3 ...
7
votes
0
answers
960
views
Vue3, Vite and Pre compiled templates to avoid 'unsafe-eval'
Is there a way to pre compile Vue3 templates for client side rendering using Vite to avoid 'unsafe-eval' errors? Seems like Vue-Loader allowed template pre compilation but I am not finding the same ...
0
votes
1
answer
281
views
Vue loader after updating breaks slots
I'm not sure what's going on here, I updated webpack-encore and vue loader to the most recent versions, and suddenly the HTML for slots compiles into something really weird.
It's just a simple
<...
4
votes
2
answers
17k
views
How to solve Module parse failed: Unexpected token (3:27) in Vue 3 project
After trying to clone my project from GitHub, (Had to delete I locally). I started to get the following error.
error in ./src/App.vue?vue&type=template&id=7ba5bd90&ts=true
Module parse ...
2
votes
2
answers
5k
views
Vue - Module build failed (from ./node_modules/vue-loader/lib/loaders/templateLoader.js): SyntaxError: Unexpected token (13:1080)
When i try to run "cross-env NODE_ENV=development nodemon ./server.js" i got these error:
ModuleBuildError: Module build failed (from
./node_modules/vue-loader/lib/loaders/templateLoader.js)...
1
vote
1
answer
1k
views
TypeError: Cannot read property 'options' of undefined
After working through a major npm package update, I am getting an error thrown from my nuxt config file…
I haven’t found a link showing me transformAssetUrls current state (if it has been deprecated/...
4
votes
3
answers
6k
views
VuetifyLoaderPlugin Error No matching rule for vue-loader found
Im trying to install the vuetify but it is giving me this Error:
[VuetifyLoaderPlugin Error] No matching rule for vue-loader found.
Make sure there is at least one root-level rule that uses vue-loader ...
2
votes
1
answer
1k
views
npm ERR! How to install compiler-sfc that meets peer dependency with [email protected]?
My packageJSON
"devDependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
...
4
votes
1
answer
2k
views
Using Vue SFC into existing Web pages with CDN vue
I would like to ask what is the best approach to include and reuse Vue components that are written in .vue files (SFC), into existing web pages.
For example lets say there is already an SPA project ...
2
votes
1
answer
637
views
Prepending custom loader to vue-loader breaks when template includes custom tags
I have a vue2 component that looks like this:
<template>
<p>Hello world</p>
</template>
<script>
export default { name: 'Example' };
</script>
<docs>
Some ...
1
vote
1
answer
695
views
Scoped css not copied in vue component
I have a scoped style tag in my vue component:
<style scoped>
.ttt{
background-color: red;
}
</style>
When I build my project with npm and webpack, the styles are not ...
1
vote
1
answer
1k
views
HMR / Hot Module Replacement problem with Vue.js 3 & webpack 5
I have a problem with webpack 5 and Vue.js 3 hot reloading - I don't know if some npm packages need updating (vue-loader?) or if I'm doing something wrong.
I created a minimal repository here:
https://...
0
votes
1
answer
844
views
Vue CLI - compile CSS files individually from directory of .scss files
I am using Vue CLI which abstracts away much of the Webpack configuration for running and building the application. This comes with some benefits, but I am at a loss as to how to create specific rules ...
1
vote
1
answer
292
views
How to access vuetify in dynamic single file components using http-vue-loader?
I am trying to access vuetify inside a component I dynamically get from http-vue-loader. I received an error that says vuetify components weren't registered. I then try to import the needed ...