Load variables into LESS CSS preprocessor from JSON file

Is it possible to load variables into LESS CSS preprocessor from a JSON file like you can do with Stylus? With contents of file myvars.json { "color1": "#112345", "color2":...

Webpack not loading images from CSS background-image property

I have no clue what to do... I am using Webpack with CSS, style, sass and stylus loaders. Here is my webpack config... Images do not show up when I use something like: body background-image:...

'npm build' does not generate project build on Windows 10 Pro

OS: Windows 10 Pro NPM Version: 3.8.6 So, I'm attempting to build a project with npm build but no project build output folder is generated, and the following error logs are generated: 0 info it...

Error output with karma instanbul coverage reports

I'm trying to generate coverage reports and I'm running into an issue. I get a Error: Unable to lookup source error... I don't understand why it is looking for the ?[hash] in the file name, if...

integrating aws-sdk to angular2 gives "Cannot find module 'stream'"

I tried these https://stackoverflow.com/questions/38875401/error-ts2304-cannot-find-name-buffer, https://github.com/aws/aws-sdk-js/issues/994...

using async/await with webpack-simple configuration throwing error: RegeneratorRuntime not defined

I am using webpack-simple template with following configurations: package.json { "name": "vue-wp-simple", "description": "A Vue.js project", "version": "1.0.0", "author": "v", ...

How to start node server locally in electron app

I'm running a NG4-Electron application and now I want to start a local node js server (Express) when the electron app starts. I have a local folder named as local_server at the root of the...

Angular Forms not working on live server

**I have used Reactive Form but its not working on live but on local it is working fine. The page gets refreshed while submitting the form. There is no error in console. ** I am new to Angular 4,...

Why nuxt-i18n module doesn't seem to be loaded? ( _vm.$t is not a function)

So I came to work on my project today and I got greated by this error with nuxt.js. I removed node_modules and .nuxt folder, reissue a yarn install but I still have this error, _vm.$t is not a...

How to extend nuxt.config.js to add stylus-loader and css-loader to my nuxt application?

I want to add CSS loader to my Nuxt.js project by adding what follows (as mentioned in the documentation link) webpack.config.js: module.exports = { module: { rules: [ { test:...

Change default font in vuetify is not working (vue-cli 3) [Vuetify 1.X]

I'm aware of the question change-default-font-in-vuetify in SO, but it doesn't address my problem as it was posted before vue-cli-3 came out, so the ideas there don't apply here as that, the...

prevent firefox from flashing white on loading page

How can I prevent Firefox from flashing a white page before it loads a webpage? I often use dark themes with Firefox (with the Stylus extension), and it is annoying to see a white flash before it...

Why is linter not linting over the template in vue js?

I cannot get the linter to lint the template part of my .vue files. Do you have any input on what I need to change in my configurations? Overall, I would like the linter to adjust something like...

How to solve 'SyntaxError: Unexpected identifier' while testing vuetify components using jest

I have written many components in vuetify that are reusable. I am using jest testing framework for unit testing. When I run 'npm run test', the test fails with 'SyntaxError: Unexpected...

Module parse failed: Unexpected character '@' (1:0) vuejs , vuetify and vuex

getting error while adding/integrating Vuetify like.. import Vuetify from 'vuetify/lib' Vue.use(Vuetify) in main.js Error: ERROR in ./node_modules/vuetify/src/stylus/components/_grid.styl Module...

How to run NUXT (npm run dev) with HTTPS in localhost?

EDIT: Updated the text in general to keep it shorter and more concise. I am trying to configure HTTPS when I run npm run dev so I can test MediaStream and alike locally (for which browsers require...

npm run serve get stuck on 40% while running

It’s been a couple of weeks that I’m working on a Vue js project Vuetify to be specific. I use npm run serve command to build and run a live server. it was working fine everything was okay but...

Getting error message Module build failed (from ./node_modules/sass-loader/dist/cjs.js) when running npm serve

I'm working on a Vue/Vuetify project for quite some time now. It all worked fine until yesterday. I had problems with using the <v-simple-table> vuetify component, so I decided to run npm install...

Stylus syntax - where do imports come from?

I've got a file called "quasar.styl": @import './quasar.variables' @import '~quasar-styl' When it gets processed by webpack, using styl-loader, I get this error: failed to locate @import file...

Sass Loader Error: Invalid options object that does not match the API schema

I'm using VueJS with the framework [VuetifyJS][1] (v2.0.19). I'm getting this error after running npm run serve: Sass Loader has been initialised using an options object that does not match the...

Sass-loader error 'options has an unknown property 'indentedSyntax'' when upgrading Vuetify from 1.5 to 2

I am upgrading Vuetify in my Vue CLI 3 project from version 1.5 to 2. I have followed these instructions, doing a full install. Since the upgrade, running 'npm run serve' gives me a ton of errors...

Vue CLI 3 vue.config.js vs webpack.config.js for plugins

I'm using Vue CLI 3, and I need to add the Terser Webpack Plugin for removing console.log and comments from the code. This isn't working with my current setup - logs and comments are still in the...

[email protected] No module factory available for dependency type: CssDependency

when I used [email protected] to npm run build system hint generate this error No module factory available for dependency type: CssDependency I have searched a lot of related questions, but they are all...

Vue + Jest Cannot read property 'default' of undefined

I'm getting this error, and I don't know what is causing it. TypeError: Cannot read property 'default' of undefined I started messing with tests now, if the error is stupid I...

Hi. I created Quasar App - Website. Trying to push it to Heroku and it says Push fail. Providing console with error

I'm trying to push my git to Heroku but it gives an error right at the end. I had a look on console of deploying a project as I understand warnings are not a big deal for crashing the whole app....

Sass Loader Error: Invalid options object. Stylus Loader has been initialized using an options object that does not match the API schema

I'm getting this error after running npm run serve: in ./src/components/site-checker/insert-model.vue?vue&type=style&index=0&lang=stylus& Syntax Error: ValidationError: Invalid options object....

The `/deep/` selector is not working using sass-loader in my VueJS application

In my Vue 2.6.10 webpack application I am trying to add SASS as our team wants to migrate our legacy application from LESS to SCSS. In my package.json I have installed these to my devDependencies...

After updating my Storybook from 5.3 to Storybook 6.2, I'm getting issues with a ModuleNotFoundError? Problem with Webpack or Storybook?

I'm have a Storybook project that is version 5.3. And I then ran npx sb upgrade and then npm start however now I'm getting an issue that I didn't have before. I seem to be getting a...

Invalid descriptor with yarn berry Github subdirectory install

I need to install a subdirectory of a remote repository as my node dependency. According to this issue, it is possible to install subdirectories of GitHub repositories as dependencies with yarn...