Showing posts with label typescript. Show all posts
Showing posts with label typescript. Show all posts

Saturday, September 18, 2021

How to fix Error: cannot find module "webpack"

Error on console regarding cannot find module "webpack"

Cannot find module 'webpack'
Require stack:
- D:\Nagasai.Works\vMobile-UI\node_modules\@angular-devkit\build-webpack\src\webpack\index.js

The Cannot find module webpack occurs when webpack is not globally installed. It is a problem with the npm script or application

Here is how we can fix

1. Install webpack in the local app folder

Ensure that you have installed the latest version of the webpack by running:
npm install webpack

2. Link webpack to your project

If the above solution does not work, try linking a globally installed webpack to your project. In your project, open the terminal, and type

npm link webpack

Tuesday, February 20, 2018

Paste JSON as Code - quicktype

quicktype infers types from sample JSON data, then outputs strongly typed models and serializers for working with that data in your desired programming language. To use this extension, just copy some JSON and use Edit/Paste JSON as Code.

This extensions works only in VS2017 as of now.

For a more powerful experience, including custom options and the ability to generate code from JSON Schema or multiple JSON samples, try app.quicktype.io.

Download here