TritonDataCenter / node-docker-registry-client

node.js client for the docker registry
Mozilla Public License 2.0
64 stars 33 forks source link

Cannot compile Electron app when importing `docker-registry-client` #18

Closed aaronbeall closed 7 years ago

aaronbeall commented 7 years ago

I cloned the electron-react-typescript-boilerplate repo and installed docker-registry-client, then added this line to App.tsx:

import * as client from "docker-registry-client"
console.log("client", client)

And I get this error when compiling (npm run dev in that project):

ERROR in ./~/asn1.js-rfc3280/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../.. in /Users/abeall/tools/docker-manager/electron/node_modules/asn1.js-rfc3280
 @ ./~/asn1.js-rfc3280/index.js 4:13-34

The error only appears when I try to import docker-registry-client. Any idea?

aaronbeall commented 7 years ago

Solved here: https://github.com/iRath96/electron-react-typescript-boilerplate/issues/5