chrome-remote-debug-protocol
chrome-remote-debug-protocol copied to clipboard
Compile fails
trying this out today and was seeing some problems:
❯ yarn generate-crdp
yarn generate-crdp v1.0.1
$ tsc -p src/tsconfig.json && node out/protocolToCrdp.js
src/protocolToCrdp.ts(1,22): error TS6053: File '~/code/temp/chrome-remote-debug-protocol/typings/index.d.ts' not found.
src/protocolToCrdp.ts(3,21): error TS2307: Cannot find module 'fs'.
src/protocolToCrdp.ts(4,23): error TS2307: Cannot find module 'path'.
src/protocolToCrdp.ts(224,25): error TS2304: Cannot find name '__dirname'.
error Command failed with exit code 2.
The missing modules I fixed with a yarn add @types/node
.
The ../typings/index.d.ts
reference though.. I'm still noob enough with TSC to not know the right fix. Though admittedly commenting it out seems to work... :)
I pushed my changes (with a protocol bump) to my fork. I'll open it as a PR just so you can see. Feel free to close it if you want: https://github.com/nojvek/chrome-remote-debug-protocol/pull/6