Vuejs 3 webpack : Problem with vue-template-compiler

To make vue 3 work fine with webpack without using vite or vue cli follow these steps : init the package.json like : { “private”: true, “name”: “vue-3”, “description”: null, } install the last version of vue : npm i –save vue@next vue-loader@next install also the dev dependencies that includes @vue/compiler-sfc which replaces vue-template-compiler npm … Read more

How to import functions from different js file in a Vue+webpack+vue-loader project

Say I want to import data into a component from src/mylib.js: var test = { foo () { console.log(‘foo’) }, bar () { console.log(‘bar’) }, baz () { console.log(‘baz’) } } export default test In my .Vue file I simply imported test from src/mylib.js: <script> import test from ‘@/mylib’ console.log(test.foo()) … </script>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)