Error importing
See original GitHub issueI have this in my App.svelte file:
<script>
import { defaultChainStore, web3, selectedAccount, connected, chainData } from 'svelte-web3'
defaultChainStore.setBrowserProvider()
</script>
I get this error:
[!] Error: 'default' is not exported by node_modules\svelte-web3\src\chains.json, imported by node_modules\svelte-web3\src\web3-store.js
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
node_modules\svelte-web3\src\web3-store.js (2:7)
1:
2: import chains from './chains.json'
^
3: import { derived, writable } from 'svelte/store'
Error: 'default' is not exported by node_modules\svelte-web3\src\chains.json, imported by node_modules\svelte-web3\src\web3-store.js
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Review and troubleshoot import errors - Knowledge Base
Below, learn how to resolve errors detected during an import, download an error file, view error details, and correct issues in your import...
Read more >Handle import errors - Analytics Help
Troubleshoot Data Import problems. Not seeing the imported data appearing in your reports, as expected? This article can help you troubleshoot the problem....
Read more >6 Common CSV Import Errors and How to Fix Them
One of the most common CSV import errors is that the file is simply too large. That can be caused by too many...
Read more >How to Fix ImportError: Cannot Import Name in Python
The Python ImportError: cannot import name error occurs when an imported class is not accessible or is in a circular dependency.
Read more >Article - Import Error When Importing... - Sign In
When I try and import photos from my iPhone / iPad I get the following error: Something went wrong, your files may not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jonathanhecl @jonathanhecl Acually, i just released a new version (2.2.0) which removes the
chains.json
and replace it with a pure js equivalent. Sorollup-plugin-json
is not needed anymore.Thanks for the information @connorrothschild (I don’t use rollup myself anymore) I’ll add a note in the README so people know what to do in this case.