Giter Club home page Giter Club logo

Comments (8)

DanBurton avatar DanBurton commented on May 28, 2024 2

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.

leakim34 avatar leakim34 commented on May 28, 2024 2

Adding a similar error report.

Environment details

  • Framework: Vue 3
  • Bundler: ViteJS
  • Reach Connector: Algorand (explicitly called before reach compile)

Steps to reproduce

  1. Created and compiled index.rsh file in < app root >/src/build
  2. 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.

jeapostrophe avatar jeapostrophe commented on May 28, 2024 1

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.

MrJackdaw avatar MrJackdaw commented on May 28, 2024 1

Adding a similar error report.

Environment details

  • Framework: Vue 3
  • Bundler: ViteJS
  • Reach Connector: Algorand (explicitly called before reach compile)

Steps to reproduce

  1. Created and compiled index.rsh file in < app root >/src/build
  2. 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.

cb0806151 avatar cb0806151 commented on May 28, 2024

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.

victorsh avatar victorsh commented on May 28, 2024

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.

cb0806151 avatar cb0806151 commented on May 28, 2024

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.

jeapostrophe avatar jeapostrophe commented on May 28, 2024

Closing now based on the feedback from last week.

from reach-lang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.