-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
developmentStandard developmentStandard developmentr&d:polykey:core activity 1Secret Vault Sharing and Secret History ManagementSecret Vault Sharing and Secret History Management
Description
Specification
As part of #249 we're using a JSON stream parser to parse the JSONRPC messages. There seems to be a problem with this library specifically where we can't import it with the import keyword. So far a work around has been to import it with const jsonStreamParsers = require('@streamparser/json');.
We need to import it with import { JSONParser } from '@streamparser/json';. but currently doing so results in a TS2307: Cannot find module '@streamparser/json' or its corresponding type declarations. error.
So far I haven't been able to determine why the usual import isn't working. From what I can tell it's using conditional exports within it's package.json file for specifying the exports. This may be related?
Additional context
- Related Client RPC migration #509
Tasks
- determine the cause of the import error.
- find a fix to import the stream parser using the
importkeyword.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard developmentr&d:polykey:core activity 1Secret Vault Sharing and Secret History ManagementSecret Vault Sharing and Secret History Management