question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
clbrgecommented, Sep 3, 2021

@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. So rollup-plugin-json is not needed anymore.

1reaction
clbrgecommented, Sep 3, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found