Tips for setting up chrome-app typings in Typescript 2

I am looking to eliminate the typings in our Typescript project. After successfully removing most typings dependencies with Typescript 2, I'm left with just one for chrome-app: https://github.com/uProxy/uproxy/compare/master...fortuna:master

When using this command:

npm install @types/chrome-app --save-dev

The package cannot be found, even though it is available on DefinitelyTyped: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/chrome

What could be the issue? How can I install the chrome-app definitions with npm instead of typings?

Update (December 17, 2016): A bug in the @types/chrome-app package has been resolved. The npm command mentioned earlier now functions properly.

Answer №1

For TypeScript 2, make use of the typings command to install necessary typings.

typings install chrome --save-dev --source dt --global

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What issue are we encountering with those `if` statements?

I am facing an issue with my Angular component code. Here is the code snippet: i=18; onScrollDown(evt:any) { setTimeout(()=>{ console.log(this.i) this.api.getApi().subscribe(({tool,beuty}) => { if (evt.index == ...

What is the best method for connecting to the KONG API, hosted on an EC2 instance, from a separate EC2 instance running a Node.js application?

How can I make a call to the KONG API from my node.js application that is running on an EC2 instance? What steps do I need to take in order to establish communication between node.js and the KONG API? ...

Can you conduct testing on Jest tests?

I am in the process of developing a tool that will evaluate various exercises, one of which involves unit-testing. In order to assess the quality of tests created by students, I need to ensure that they are effective. For example, if a student provides the ...

Starting the Appium server on Mac is proving to be challenging with the "Appium &" application

I have successfully downloaded all the necessary tools and set up the environment variable on my system running macOS Mojave version 10.14.3. Specifically, I have installed node, appium, and wd using the following commands: brew install node npm install - ...

An issue with npm arises on Windows 10 insider preview build 14366

It appears that npm and nodejs are experiencing issues on the latest Windows version build 1433 When I ran the following command: npm -v events.js:141 throw er; // Unhandled 'error' event ^ Error: This socket is closed. ...

Issues have been reported with npm not functioning properly on Windows 7 operating system without displaying any

Having just started with node, my npm has suddenly stopped functioning. Previously it was working without any issues, but now it simply hangs without giving any errors. Any assistance in resolving this issue would be greatly appreciated. ...

Leveraging spectacle to produce swagger documentation

After installing spectacle globally using the command: npm install -g spectacle-docs I attempted to use it but encountered the following error: spectacle is not recognized as an internal or external command What could be causing this issue? ...

Error: Typescript error at line 18 in app.ts - Cannot locate the 'server' namespace

Check out this straightforward code snippet: "use strict"; import * as express from "express"; class Server { public app: express.Application; public static start(): Server { return new Server(); } constructor() { this. ...

selective ancestor label Angular 8

I am looking for a way to place my content within a different tag based on a specific condition. For instance, I need my content to be enclosed in either a <table> or <div> depending on the condition. <table|div class="someClass" ...

Error encountered in MochaTest - UnhandledPromiseRejectionWarning: The function 'done' is not recognized as a valid function

Currently, I am conducting a test to create a user in a MongoDB using Mocha. Here is the code snippet for the test: The primary issue I encountered while running 'npm test' are as follows: 1. The terminal freezes and never completes the test. 2. ...

Is there any way to deactivate the saved query in react-admin without having to develop a new component?

The latest version of react-admin, version 4, introduced a new feature that allows saving filters. I'm curious about how to disable this functionality without having to create an additional filter button. https://i.stack.imgur.com/uTrUe.gif ...

"Encountering a problem when utilizing browserify in conjunction with a node

Is there a way to incorporate the pbkdf2 npm library in my plain Javascript/HTML pages without using Node? I'm looking at browserify to help me with this. I've created a short JS file (main.js) that utilizes the library's functionality. var ...

Encountering an issue when attempting to execute "npm run watch" due to an error message related to "gulp"

Recently, I encountered an issue with my web starter kit from the Coding Phase GitHub repository. Everything was working fine until I decided to run npm run watch and started receiving error messages. It seems like this problem began after I updated Node ...

Adjusting various angular-cli configuration files or providing input variables

My application caters to different customers, requiring personalized configurations based on their needs. I am looking for a way to customize the settings in the angular-cli.json file each time I run ng build. Is there a method to: 1) Dynamically cha ...

Difficulty encountered while deploying a React application on Netlify

I followed the instructions on a Medium link to deploy my React application on Netlify: To set up the production mode, I utilized an express server for defining build scripts. After creating the build scripts on my local machine, I uploaded them to the Ne ...

Challenge with the scope of 'this' in Typescript

Whenever I invoke the findFromList function from a component, it triggers this particular error message: ERROR TypeError: Cannot read property 'searchInArray' of undefined at push../src/app/shared/services/filter.service.ts.FilterService ...

Is there a way to execute an npm command within a docker container using crontab?

It seems like the command was executed successfully, but the output is not being displayed. * * * * * docker container exec -it upvotocracy-api npm run rank ...

Issue with readonly is preventing the ability to alter the font color of the input

I need to change the font color of a disabled input. When it is disabled, it appears gray and I want it to be black instead. I attempted to use readonly but that did not have the desired effect, and now the input is showing [object Object]. Below is my HTM ...

The function switchMap does not exist in this context

After completing the Angular Tour of Heroes tutorial and some others, I decided to start building apps with Angular 2. One important thing I learned is that when we're listening for changes with a Subject, it's good practice to wait for a few sec ...

Having trouble with your Gulp task?

Hi there, I've set up a gulp task to minify my HTML files but it seems to be causing an issue. This is what my gulpfile.js looks like: var gulp = require('gulp'); var autoprefixer = require('gulp-autoprefixer'); var htmlmin = req ...