Categories
Mastering Development

JSX element type ‘Location’ is not a constructor function for JJSX elements

I’m building app by using react and typescript. “react”: “^16.12.0”, “typescript”: “^3.7.5”, “@types/react”: “^16.9.23” I want to call my react component like that: <Location location={location} setLocation={setLocation} /> but i get this error message: TS2605: JSX element type ‘Location’ is not a constructor function for JSX elements.   Type ‘Location’ is missing the following properties from type […]

Categories
Development

Module not found: Error: Can’t resolve ‘./router’ in ‘C:\HK\Vue-learning\testapp1\src’

I am new to Vue js. I have installed a basic vue template and added a web pack for bundling. But when I use “webpack –config webpack.config.js” to build the app I am getting the following error. **ERROR in ./src/main.ts Module not found: Error: Can’t resolve ‘./router’ in ‘C:\HK\Vue-learning\testapp1\src’ @ ./src/main.ts 2:0-30 7:12-18 ERROR in […]

Categories
Development

“Module not found: Error: Can’t resolve ‘electron-is-dev'” in electron & typescript & webpack project

I’m using Electron and Typescript with webpack. And I’m gonna add react.js. But I typed “npx webpack”, I got an error. It says “electron-is-dev module is not found”, but I already installed it. ERROR in ./src/main/window.ts Module not found: Error: Can’t resolve ‘electron-is-dev’ in ‘project-path/src/main’ @ ./src/main/window.ts 2:0-36 12:35-40 @ ./src/main/app.ts I can’t find how […]

Categories
Development

TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds

I’m getting this error after upgrading to angular 9. I’m using visual studio 2019, ASP .NET core with angular. Even if I create new project and update angular to 9 version, It stops working. Complete list of page response is : TimeoutException: The Angular CLI process did not start listening for requests within the timeout […]

Categories
Development

Why is this React Typescript app throwing errors?

I just created a new React app using npx create-react-app my-app –template typescript and it was working fine until I changed my component to from a stateless one to a stateful one. The error: JSX element type ‘App’ is not a constructor function for JSX elements. TS2605 3 | import App from “./App”; 4 | […]