Solutions

ValidationError: Invalid options object Dev Server – Webpack 5

Today while updating Webpack 4 to 5, got below error:ValidationError: Invalid options object Dev Server has been initiated using an options object that does not match the API schema. After some analysis 🔎, found that there are changes in the options we provide to Webpack Dev Server in Webpack 5.🕵️‍♂️ Invalid options object Dev Server …

ValidationError: Invalid options object Dev Server – Webpack 5 Read More »

ERROR vue-template-compiler must be installed as a peer dependency

Hello Friends! 🙏, today while I was working on How to setup a Vue JS v3 project from scratch (without Vue CLI) (Including SFC’s & Vue Router v4), When I compiled the App, I got below error ❗. As error has already pointed the issue is at vue-loader, I went through the documentation and every thing …

ERROR vue-template-compiler must be installed as a peer dependency Read More »

WARN export ‘default’ (imported as ‘Vue’) was not found in ‘vue’

Hello Friends! 🙏, today while I was working on How to setup a Vue JS v3 project from scratch (without Vue CLI) (Including SFC’s & Vue Router v4), When I compiled the App, I got below warning ⚠. So checked the way I have imported the Vue, it’s like: Now after doing some research 🔍😁, …

WARN export ‘default’ (imported as ‘Vue’) was not found in ‘vue’ Read More »

WARN export ‘default’ (imported as ‘content’) was not found

Hello Friends 🙏, today while I was setting up a new React project from scratch without using create-react-app and after doing all the required steps when I compiled the React App, I got below warning😮: So basically it is related to mini-css-extract-plugin, we have used it to extract the styles from the project to a …

WARN export ‘default’ (imported as ‘content’) was not found Read More »

WARN export ‘Switch’ (imported as ‘Switch’) was not found in ‘react-router-dom’

Hello Friends 🙏, today I was setting up a new React project from scratch without using create-react-app and after doing all the required steps when I compiled the React App, I got below warning😮: So basically it is complaining for the Switch here, below is the code: Then I did a search on this error …

WARN export ‘Switch’ (imported as ‘Switch’) was not found in ‘react-router-dom’ Read More »

ERROR TypeError: parentInstance.children.indexOf is not a function – React Testing Library

Hello friends 🙏, today someone came to me with this issue, it was a React v16 project and facing issue while trying to match the snapshots using React Testing Library. This error was pointing to .create method of the renderer: So after bit some research 🔍😅, found that error is happening due to some compatibility …

ERROR TypeError: parentInstance.children.indexOf is not a function – React Testing Library Read More »