Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Import file '~lib/const.ts' not found #101

Open
DramaCrypto opened this issue Sep 12, 2022 · 0 comments
Open

Import file '~lib/const.ts' not found #101

DramaCrypto opened this issue Sep 12, 2022 · 0 comments

Comments

@DramaCrypto
Copy link

Load subgraph from subgraph.yaml
Compile data source: Factory => build\Factory\Factory.wasm
× Failed to compile subgraph: Failed to compile data source mapping: Import file '~lib/const.ts' not found.
Error: Failed to compile data source mapping: Import file '~lib/const.ts' not found.
at Compiler._compileDataSourceMapping (Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules@graphprotocol\graph-cli\src\compiler.js:314:13)
at Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules@graphprotocol\graph-cli\src\compiler.js:207:20
at updateInDeepMap (Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules\immutable\dist\immutable.js:1971:22)
at updateInDeepMap (Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules\immutable\dist\immutable.js:1980:23)
at updateInDeepMap (Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules\immutable\dist\immutable.js:1980:23)
at Map.updateIn (Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules\immutable\dist\immutable.js:1278:26)
at Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules@graphprotocol\graph-cli\src\compiler.js:206:24
at Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules\immutable\dist\immutable.js:3016:46
at List.__iterate (Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules\immutable\dist\immutable.js:2206:13)
at IndexedIterable.mappedSequence.__iterateUncached (Z:\08-Swap-Projects\20220824-black-swap\works\black-subgraph\node_modules\immutable\dist\immutable.js:3015:23)

I got this error when trying to deploy exchange subgraph.

Please let me know how I can solve this issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant