yarn set version berry; yarn add @agoric/orchestration to get 0.2.0-u17.1
set up typescript yarn add --dev typescript; copy .yarnrc.yml and tsconfig.json from dapp-orchestration-basics
put import { withOrchestration } from '@agoric/orchestration/src/utils/start-helper.js'; in src/x.js
yarn tsc
blammo:
$ yarn tsc
node_modules/@agoric/orchestration/src/exos/exo-interfaces.ts:4:44 - error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../utils/address.js'?
4 import type { ICAChannelAddressOpts } from '../utils/address';
~~~~~~~~~~~~~~~~~~
node_modules/@agoric/orchestration/src/exos/exo-interfaces.ts:5:36 - error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './icq-connection-kit.js'?
5 import type { ICQConnection } from './icq-connection-kit';
~~~~~~~~~~~~~~~~~~~~~~
Found 2 errors in the same file, starting at: node_modules/@agoric/orchestration/src/exos/exo-interfaces.ts:4
Expected behavior
Platform Environment
what OS are you using? what version of Node.js?
is there anything special/unusual about your platform?
what version of the Agoric-SDK are you using? (run git describe --tags --always)
Describe the bug
The
.js
extension is missing from a couple imports:https://github.com/Agoric/agoric-sdk/blob/f46aec96c6aa69bab926c682dbdd37845b3a5618/packages/orchestration/src/exos/exo-interfaces.ts#L4-L5
To Reproduce
Steps to reproduce the behavior:
yarn set version berry
;yarn add @agoric/orchestration
to get0.2.0-u17.1
yarn add --dev typescript
; copy.yarnrc.yml
andtsconfig.json
from dapp-orchestration-basicsimport { withOrchestration } from '@agoric/orchestration/src/utils/start-helper.js';
insrc/x.js
yarn tsc
Expected behavior
Platform Environment
git describe --tags --always
)Additional context
working on