Comments (8)
Ok, I have a significant update on this. We have revamped the way we publish our JS stdlib to be more compatible with various JS browser frameworks.
Kindly reach update
if you are using the docker containers, and npm update @reach-sh/stdlib
if you are using the js lib directly. (The latest version is now 0.1.2-rc.55
)
If you still see these kinds of errors after the update, then instead of:
import * as reach from '@reach-sh/stdlib/ALGO';
please try:
import {loadStdlib} from '@reach-sh/stdlib';
const reach = loadStdlib('ALGO');
from reach-lang.
Adding a similar error report.
Environment details
- Framework:
Vue 3
- Bundler:
ViteJS
- Reach Connector:
Algorand
(explicitly called beforereach compile
)Steps to reproduce
- Created and compiled
index.rsh
file in< app root >/src/build
- Added
* as reach
import to< app root >/src/main.js
import * as reach from "@reach-sh/stdlib/ALGO"; // relevant line #1 import { createApp } from "vue"; import App from "./App.vue"; import AlgoConnect from "./components/AlgoConnect.vue"; import "./main.scss"; reach.setSignStrategy("AlgoSigner"); // relevant line # 2 createApp(App).component("AlgoConnect", AlgoConnect).mount("#app");Error details
> dev > vite Pre-bundling dependencies: @reach-sh/stdlib/ALGO vue @vue/reactivity @vue/runtime-core (this will be run only when your dependencies or config have changed) > node_modules/@reach-sh/stdlib/CBR.mjs:1:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default" 1 │ import ethers from 'ethers'; ╵ ~~~~~~ > node_modules/@reach-sh/stdlib/shared.mjs:2:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default" 2 │ import ethers from 'ethers'; ╵ ~~~~~~ > node_modules/@reach-sh/stdlib/ALGO_compiled.mjs:8:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default" 8 │ import ethers from 'ethers'; ╵ ~~~~~~ > node_modules/@reach-sh/stdlib/ALGO.mjs:5:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default" 5 │ import ethers from 'ethers'; ╵ ~~~~~~ > node_modules/@reach-sh/stdlib/ALGO.mjs:8:7: error: No matching export in "node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs" for import "default" 8 │ import msgpack from '@msgpack/msgpack'; ╵ ~~~~~~~ error when starting dev server: Error: Build failed with 5 errors: node_modules/@reach-sh/stdlib/ALGO.mjs:5:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default" node_modules/@reach-sh/stdlib/ALGO.mjs:8:7: error: No matching export in "node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs" for import "default" node_modules/@reach-sh/stdlib/ALGO_compiled.mjs:8:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default" node_modules/@reach-sh/stdlib/CBR.mjs:1:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default" node_modules/@reach-sh/stdlib/shared.mjs:2:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default" at ...
Facing same issue here ... :'(
from reach-lang.
We've done some more work on this. Something we've discovered is that Webpack 5 made a breaking change where it is no longer compatible with something that Webpack 4 allows and vice-versa. So basically, we're in a situation where Reach works with 4 and not 5. We're looking for a way to support both. As a short-term workaround, if it is possible for you to make progress with 4, I recommend doing that. We won't close this though, because we think it may be possible to work with both.
from reach-lang.
Adding a similar error report.
Environment details
- Framework:
Vue 3
- Bundler:
ViteJS
- Reach Connector:
Algorand
(explicitly called beforereach compile
)
Steps to reproduce
- Created and compiled
index.rsh
file in< app root >/src/build
- Added
* as reach
import to< app root >/src/main.js
import * as reach from "@reach-sh/stdlib/ALGO"; // relevant line #1
import { createApp } from "vue";
import App from "./App.vue";
import AlgoConnect from "./components/AlgoConnect.vue";
import "./main.scss";
reach.setSignStrategy("AlgoSigner"); // relevant line # 2
createApp(App).component("AlgoConnect", AlgoConnect).mount("#app");
Error details
> dev
> vite
Pre-bundling dependencies:
@reach-sh/stdlib/ALGO
vue
@vue/reactivity
@vue/runtime-core
(this will be run only when your dependencies or config have changed)
> node_modules/@reach-sh/stdlib/CBR.mjs:1:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default"
1 │ import ethers from 'ethers';
╵ ~~~~~~
> node_modules/@reach-sh/stdlib/shared.mjs:2:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default"
2 │ import ethers from 'ethers';
╵ ~~~~~~
> node_modules/@reach-sh/stdlib/ALGO_compiled.mjs:8:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default"
8 │ import ethers from 'ethers';
╵ ~~~~~~
> node_modules/@reach-sh/stdlib/ALGO.mjs:5:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default"
5 │ import ethers from 'ethers';
╵ ~~~~~~
> node_modules/@reach-sh/stdlib/ALGO.mjs:8:7: error: No matching export in "node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs" for import "default"
8 │ import msgpack from '@msgpack/msgpack';
╵ ~~~~~~~
error when starting dev server:
Error: Build failed with 5 errors:
node_modules/@reach-sh/stdlib/ALGO.mjs:5:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default"
node_modules/@reach-sh/stdlib/ALGO.mjs:8:7: error: No matching export in "node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs" for import "default"
node_modules/@reach-sh/stdlib/ALGO_compiled.mjs:8:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default"
node_modules/@reach-sh/stdlib/CBR.mjs:1:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default"
node_modules/@reach-sh/stdlib/shared.mjs:2:7: error: No matching export in "node_modules/ethers/lib.esm/index.js" for import "default"
at ...
from reach-lang.
I'm also getting these errors when using webpack 5 with Svelte as per this repository
https://github.com/cb0806151/reach-svelte-test
PS C:\Users\Raxsus\Documents\github\reach-svelte-test> yarn dev
yarn run v1.22.10
$ webpack serve --content-base public
i 「wds」: Project is running at http://localhost:8080/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from public
× 「wdm」: asset build/bundle.js 2.75 MiB [emitted] (name: build/bundle) 1 related asset
asset build/bundle.css 929 bytes [emitted] (name: build/bundle) 1 related asset
Entrypoint build/bundle 2.75 MiB (2.88 MiB) = build/bundle.css 929 bytes build/bundle.js 2.75 MiB 2 auxiliary assets
runtime modules 30 KiB 17 modules
orphan modules 2.24 KiB [orphan] 8 modules
modules by path ./node_modules/ 2.36 MiB 297 modules
modules by path ./src/ 6.35 KiB (javascript) 890 bytes (css/mini-extract)
modules by path ./src/*.css 371 bytes (javascript) 890 bytes (css/mini-extract)
./src/global.css 371 bytes [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/global.css 890 bytes [code generated]
./src/main.js 157 bytes [built] [code generated]
./src/App.svelte 5.84 KiB [built] [code generated]
crypto (ignored) 15 bytes [built] [code generated]
net (ignored) 15 bytes [built] [code generated]
buffer (ignored) 15 bytes [optional] [built] [code generated]
crypto (ignored) 15 bytes [built] [code generated]
./util.inspect (ignored) 15 bytes [built] [code generated]
ERROR in ./node_modules/@reach-sh/stdlib/ALGO.mjs 477:10-24
export 'default' (imported as 'msgpack') was not found in '@msgpack/msgpack' (possible exports: DecodeError, Decoder, EXT_TIMESTAMP, Encoder, ExtData, ExtensionCodec, decode, decodeArrayStream, decodeAsync, decodeMulti, decodeMultiStream, decodeStream, decodeTimestampExtension, decodeTimestampToTimeSpec, encode, encodeDateToTimeSpec, encodeTimeSpecToTimestamp, encodeTimestampExtension)
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO.mjs 694:17-38
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO.mjs 905:13-34
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 10:18-34
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 29:18-38
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 29:39-60
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 33:11-32
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 38:18-42
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 39:20-45
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 43:18-39
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 44:20-40
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 77:11-30
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 95:11-30
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 114:11-30
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 137:13-32
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 171:13-32
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/CBR.mjs 29:18-39
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 8:0-33 15:5-16 21:5-16 27:5-16 47:5-17 52:5-18 65:5-19 70:11-38 74:5-17 91:5-17 110:5-18 133:7-20 163:7-18
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/CBR.mjs 84:16-40
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO_compiled.mjs 8:0-33 15:5-16 21:5-16 27:5-16 47:5-17 52:5-18 65:5-19 70:11-38 74:5-17 91:5-17 110:5-18 133:7-20 163:7-18
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 20:0-73 401:37-51 402:118-126 731:84-98 787:14-28 796:76-90 992:27-41
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/shared.mjs 7:60-72
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 17:0-116 22:0-29 22:0-29 79:2-7 80:6-14 83:2-7 109:6-11 113:4-9 121:2-7 131:2-7 141:4-9 151:2-7 154:4-9 158:4-9 321:77-89 374:2-7 381:2-7 403:41-51 406:2-7 415:2-7 431:17-34 465:4-9 467:4-9
468:4-9 475:4-9 476:4-9 477:4-9 489:2-7 505:4-9 510:33-45 524:6-11 531:14-23 532:14-26 542:6-11 552:12-17 556:8-13 564:8-13 565:8-13 566:83-95 568:8-13 578:8-13 580:8-13 588:8-13 590:8-13 623:8-13 628:10-15 630:45-50 645:6-11 674:8-13 685:8-13 687:8-13 688:21-30 689:8-13 693:10-15 696:8-13 698:8-13 700:8-13 703:8-13 706:8-13 712:22-34 714:8-13 723:16-28 730:37-49 735:4-9 771:4-9 804:9-21 816:6-14 820:6-14 836:21-32 839:9-21 843:30-42 860:23-35 875:6-11 878:6-11 923:42-54 928:4-9 930:18-30 933:2-7 938:2-7 959:2-7 969:6-11 975:2-7
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/shared.mjs 8:18-34
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 17:0-116 22:0-29 22:0-29 79:2-7 80:6-14 83:2-7 109:6-11 113:4-9 121:2-7 131:2-7 141:4-9 151:2-7 154:4-9 158:4-9 321:77-89 374:2-7 381:2-7 403:41-51 406:2-7 415:2-7 431:17-34 465:4-9 467:4-9
468:4-9 475:4-9 476:4-9 477:4-9 489:2-7 505:4-9 510:33-45 524:6-11 531:14-23 532:14-26 542:6-11 552:12-17 556:8-13 564:8-13 565:8-13 566:83-95 568:8-13 578:8-13 580:8-13 588:8-13 590:8-13 623:8-13 628:10-15 630:45-50 645:6-11 674:8-13 685:8-13 687:8-13 688:21-30 689:8-13 693:10-15 696:8-13 698:8-13 700:8-13 703:8-13 706:8-13 712:22-34 714:8-13 723:16-28 730:37-49 735:4-9 771:4-9 804:9-21 816:6-14 820:6-14 836:21-32 839:9-21 843:30-42 860:23-35 875:6-11 878:6-11 923:42-54 928:4-9 930:18-30 933:2-7 938:2-7 959:2-7 969:6-11 975:2-7
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/shared.mjs 65:12-34
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 17:0-116 22:0-29 22:0-29 79:2-7 80:6-14 83:2-7 109:6-11 113:4-9 121:2-7 131:2-7 141:4-9 151:2-7 154:4-9 158:4-9 321:77-89 374:2-7 381:2-7 403:41-51 406:2-7 415:2-7 431:17-34 465:4-9 467:4-9
468:4-9 475:4-9 476:4-9 477:4-9 489:2-7 505:4-9 510:33-45 524:6-11 531:14-23 532:14-26 542:6-11 552:12-17 556:8-13 564:8-13 565:8-13 566:83-95 568:8-13 578:8-13 580:8-13 588:8-13 590:8-13 623:8-13 628:10-15 630:45-50 645:6-11 674:8-13 685:8-13 687:8-13 688:21-30 689:8-13 693:10-15 696:8-13 698:8-13 700:8-13 703:8-13 706:8-13 712:22-34 714:8-13 723:16-28 730:37-49 735:4-9 771:4-9 804:9-21 816:6-14 820:6-14 836:21-32 839:9-21 843:30-42 860:23-35 875:6-11 878:6-11 923:42-54 928:4-9 930:18-30 933:2-7 938:2-7 959:2-7 969:6-11 975:2-7
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
ERROR in ./node_modules/@reach-sh/stdlib/shared.mjs 76:15-38
export 'default' (imported as 'ethers') was not found in 'ethers' (possible exports: BaseContract, BigNumber, Contract, ContractFactory, FixedNumber, Signer, VoidSigner, Wallet, Wordlist, constants, errors, ethers, getDefaultProvider, logger, providers, utils, version, wordlists)
@ ./node_modules/@reach-sh/stdlib/ALGO.mjs 17:0-116 22:0-29 22:0-29 79:2-7 80:6-14 83:2-7 109:6-11 113:4-9 121:2-7 131:2-7 141:4-9 151:2-7 154:4-9 158:4-9 321:77-89 374:2-7 381:2-7 403:41-51 406:2-7 415:2-7 431:17-34 465:4-9 467:4-9
468:4-9 475:4-9 476:4-9 477:4-9 489:2-7 505:4-9 510:33-45 524:6-11 531:14-23 532:14-26 542:6-11 552:12-17 556:8-13 564:8-13 565:8-13 566:83-95 568:8-13 578:8-13 580:8-13 588:8-13 590:8-13 623:8-13 628:10-15 630:45-50 645:6-11 674:8-13 685:8-13 687:8-13 688:21-30 689:8-13 693:10-15 696:8-13 698:8-13 700:8-13 703:8-13 706:8-13 712:22-34 714:8-13 723:16-28 730:37-49 735:4-9 771:4-9 804:9-21 816:6-14 820:6-14 836:21-32 839:9-21 843:30-42 860:23-35 875:6-11 878:6-11 923:42-54 928:4-9 930:18-30 933:2-7 938:2-7 959:2-7 969:6-11 975:2-7
@ ./src/App.svelte 20:0-47 85:1-18 95:18-41 100:12-32 100:39-54 111:2-7
@ ./src/main.js 3:0-31 5:16-19
webpack 5.31.2 compiled with 22 errors in 4068 ms
i 「wdm」: Failed
from reach-lang.
Just tested with same configuration I posted the issue about, looks like it's importing fine now.
I did get errors with import * as reach from '@reach-sh/stdlib/ALGO';
rewriting it as suggested worked.
import {loadStdlib} from '@reach-sh/stdlib';
const reach = loadStdlib('ALGO');
from reach-lang.
Updated to the latest package, integrated the secondary import option, and its now working with Svelte! Thanks Dan and Team!!!
https://github.com/cb0806151/reach-svelte-test
from reach-lang.
Closing now based on the feedback from last week.
from reach-lang.
Related Issues (20)
- Getting Error("no log for ".concat(o_lab)) when using remote call HOT 3
- "logic eval error: fee too small" when upgrading to latest Reach (f33abc3d) HOT 11
- While creating ASA in algorand using stdlib.launchToken(), opts.metaDataHash value is ignored and not set in the asset. HOT 4
- Feature Request: Add manager address in opts for stdlib.launchToken() for Alogrand network HOT 1
- WalletConnect producing undefined importKey error HOT 2
- Feature Request: Use algod for asset information if reading is allowed. HOT 2
- Reach Compiler Error HOT 2
- Reach seems to produce impossible values for counter-example to failed "check" statement HOT 2
- launchToken does not set manager address in Algorand TestNet HOT 2
- Compiler error when using .fromObject HOT 1
- Pera wallet connect not working HOT 2
- Unable to import stdlib in Vite HOT 1
- Reach run gives error on latest version
- Reach run gives error on latest version HOT 2
- Not able to import modules in versions after 0.1.13rc0 (f79282c4)
- Remote object call triggers an assumption error
- Sqrt fails formal verification HOT 5
- feat: integrate algorand community's use-wallet HOT 1
- fix: please upgrade Reach's Walletconnect from v1 to v2
- test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reach-lang.