Definitelytyped: Cannot install @types/webpack

Created on 16 Mar 2018  路  16Comments  路  Source: DefinitelyTyped/DefinitelyTyped

  • [x] I tried using the @types/webpack package and had problems.
  • [x] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
  • [x] I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
  • [x] [Mention](https://github.com/blog/821-mention-somebody-they-re-notified) the authors (see Definitions by: in index.d.ts) so they can respond.

    • Authors: @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @ahmed-taj @alan-agius4 @elliottsj @jason0x43 @dennispg

Looks like there's issues with the recent release and @types/webpack cannot be installed. I started a fresh npm repo and tried to add it as a dev dependency.

The analytics on https://www.npmjs.com/package/@types/webpack show no downloads today which seems very unlikely.

image

Trying to npm install locally throws a 404:

image

This breaks our CI environment as well:

image

Most helpful comment

+1 having trouble installing 4.0.0 and the latest 4.1.1

All 16 comments

The particular version in question is @types/webpack 3.8.11

Same with other versions (4.1.1, 4.1.0 and 4.0.0).

Yeah looks to be ~all versions~ 3.8.6+.

At least 3.8.5 still works.

I think maybe 3.8.6+ are broken

@admosity We are also having trouble installing @types/webpack 3.8.11.

image

Yep looks to be the case. Looks like the workaround can be to rollback to 3.8.5 in the meanwhile. Thanks @jason0x43

+1 having trouble installing 4.0.0 and the latest 4.1.1

This is also happening with 3.8.2 right now. I tried 3.8.5 but it can't find that either:

npm ERR! code E404
npm ERR! 404 Not Found: @types/webpack@^3.8.5

We have the same error and our build can't be created due these errors.

yarn resolutions are really helpful for this situation

3.8.5 does not work.

Couldn't find any versions for "webpack" that matches "3.8.5"

This seems to have been solved.
Check here: https://github.com/npm/registry/issues/292

@alan-agius4, I will deploy a new official demo soon. You can test it running npm run start:demo or yarn start:demo in the repo main folder. Check it out, maybe you can contribute: https://github.com/Rebilly/ReDoc/tree/react-rewrite/demo

@admosity can you close this one?
It was resolved

Yep seems to be the case except the download counters are still busted. Closing this for now.

Was this page helpful?
0 / 5 - 0 ratings