actions / http-client

A lightweight HTTP client optimized for use with actions, TypeScript with generics and async await.
https://github.com/features/actions
Other
72 stars 33 forks source link

1.0.10 Missing js build #43

Closed bobmccracken closed 3 years ago

bobmccracken commented 3 years ago

I'm using @actions/github in my CI process, but it's failing with this stacktrace:

Error: Cannot find module '/home/runner/work/inc-web-ordering-v2/inc-web-ordering-v2/node_modules/@actions/http-client/index.js'. Please verify that the package.json has a valid "main" entry
    at tryPackage (internal/modules/cjs/loader.js:297:19)
    at Function.Module._findPath (internal/modules/cjs/loader.js:528:18)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:784:27)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/runner/work/inc-web-ordering-v2/inc-web-ordering-v2/node_modules/@actions/github/lib/internal/utils.js:23:33)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32) {
  code: 'MODULE_NOT_FOUND',
  path: '/home/runner/work/inc-web-ordering-v2/inc-web-ordering-v2/node_modules/@actions/http-client/package.json',
  requestPath: '@actions/http-client'

I noticed this issue was opened recently over at @actions/toolkit: https://github.com/actions/toolkit/issues/747

Is the latest release missing compiled js?

ThomasFlorelli commented 3 years ago

Hello! Any ETA on this? Just to know if we need to find a workaround or wait as it is blocking deployments for us and I guess a bunch of other people

ilya144 commented 3 years ago

Is it possible to move http-client into peerDependencies?

esbena commented 3 years ago

This seems to be a duplicate of the now-resolved https://github.com/actions/http-client/issues/44.